send empty mail to dev-general-unsubscr...@lists.oxidforge.org 
<mailto:dev-general-unsubscr...@lists.oxidforge.org>

> On 12 Apr 2017, at 16:53, Pintilie Marian <pintilie_mar...@yahoo.com> wrote:
> 
> Is here any way to be remove from this emailing list?
> 
> Thank you
> 
> --------------------------------------------
> On Wed, 4/12/17, Kenny Wildfeuer <kenny.wildfe...@gmail.com> wrote:
> 
> Subject: Re: localized offline.html
> To: "Robert Schöne" <scho...@primus-print.de>
> Cc: dev-general@lists.oxidforge.org
> Date: Wednesday, April 12, 2017, 4:43 PM
> 
> Hi Robert,
> 
> i hope u understand the german comment - it’s
> just copy&past from our git history.
> You
> have to overwrite the render() method in the ShopComponet,
> take a look:
> 
> // Um die
> offline.html für jeden Shop einzeln definieren zu können,
> 
> // müssen wir das hier abfangen. Wird
> eigentlich im Parent [parent::render()] 
> //
> gemacht, dort wird allerdings immer hart auf offline.html
> verwiesen. 
> // Wir verweisen jetzt auf
> offline[$iShopId].html; sollte das File nicht existieren,
> // wird auf offline.html verwiesen.
> 
> if (
> !$oShop->oxshops__oxactive->value 
>         && 'oxstart' !=
> $myConfig->getActiveView()->getClassName() 
>         && !$this->isAdmin() )
> {
> 
>     // redirect to
> offline if there is no active shop
>    
> $sShopUrl = oxRegistry::getConfig()->getSslShopUrl();
>     $iShopId = $oShop->getId();
>     
>     // checken ob
> ein file offline[$iShopId].html existiert
>     $sOfflineUrl = '';
>     
>     if(
> file_exists(OX_BASE_PATH . "offline$iShopId.html")
> ) {
>         
>    
>     $sOfflineUrl = $sShopUrl .
> "offline$iShopId.html";
>    
>     
>     }  else  {
>         
>        
> $sOfflineUrl = $sShopUrl . "offline.html";
>     }
>         
>     oxRegistry::getUtils()->redirect(
> $sOfflineUrl, false );
> }
> 
> 
> Kenny
> 
>> 
> Am 12.04.2017 um 15:28 schrieb Robert Schöne <scho...@primus-print.de>:
>> 
>> Hi Tomas,
>> 
>> thanks for your
> suggestion. My question might be incomplete in regards to
> what we want to achieve...
>> 
>> It's not just about text. We want to
> customize the pages to keep them in line with the CI of the
> relevant shop. Own logos and stuff.
>> 
>> 
>> Robert
>> 
>> 
>> Am 12.04.2017 um 15:08 schrieb Tomas
> Kvietkauskas:
>>> Hi,
>>> 
>>> why not
> writing “Maintenance” messages in multiple languages in
> the same offline.html file?
>>> 
>>> -
>>> Tomas
>>> 
>>>> On 12
> Apr 2017, at 15:59, Robert Schöne <scho...@primus-print.de>
> wrote:
>>>> 
>>>> Hi there!
>>>> Is there a solution to have a
> localized offline.html ?
>>>> We run
> shops in different languages and it is somehow unconvenient
> to have a maintenance page that is not in the native
> language of that shop.
>>>> Do we
> overlook something?
>>>> Thanks for
> your help on that issue.
>>>> 
>>>> Best regards,
>>>> Robert Schöne
>>> 
>> 
> 

Reply via email to