This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Setup & design » Multilanguage siteaccess and overrides
expandshrink

Multilanguage siteaccess and overrides

Multilanguage siteaccess and overrides

Wednesday 14 December 2005 3:11:34 pm - 5 replies

Hi there, I just setup a multilanguage website, that features ita-IT as default and eng-US as secondary language.
I created the two folders in siteaccess, so I ended up with:
/settings/siteaccess/main
/settings/siteaccess/en

I read all the documentation I was able to find about this subject, but it looks like everybody just creates a site.ini.append.php in the new siteaccess folders and it works as expected, taking the design from the main siteaccess.
I obviously inserted SiteDesign=main and AdditionalSiteDesignList[]=base, but every override, toolbar and everything was not working in the "en" siteaccess.
So I tried to create symbolic links pointing from ../main/override.ini.append.php (together with every other file in the dir), and it works.
Is this the correct way? I don't find it so obvious to mantain 2 different siteaccess with different files, because I should create everything 2 times. Maybe there is some black magic trick to put in site.ini.append I'm not aware of?

Second thing: the servervar matchorder method.
It seems like it could enable ezpublish to automatically choose a siteaccess, looking at the server variables, but beside a couple of rows in the new documentation I cannot find anything about this. It's almost an undocumented feature...
Can someone illuminate me about its use?

Thank you in advance,
Max

Friday 16 December 2005 12:22:27 pm

Please... does anybody has some idea on this subject?
Yesterday I was trying to display some template informations which would be different for the english part.
So, I tried to rely on the fallback system of ez publish, and I created a "en" sitedesign.
In the english site.ini.append I put

SiteDesign=en
AdditionalSiteDesignList[]=main
AdditionalSiteDesignList[]=base

...but I only got a proper homepage displayed, with the header include modified accordingly to my desire (I'm overriding pagelayout on the home node), and the rest was skinned with the base layout. Why didn't it use my main layout before trying with base?
I'm crawling in the dark...

Thank you in advance,
Max

Saturday 17 December 2005 11:47:23 pm

Ciao Massimo ho letto il tuo post e dato che mi trovo nella tua stessa situazione volevo saperee se avevi risolto il problema.
Grazie mille.

Antonio

Monday 19 December 2005 9:46:53 am

> I don't find it so obvious to mantain 2 different siteaccess with different files, because I should create everything 2 times. Maybe there is some black magic trick to put in site.ini.append I'm not aware of?

Hi Massimo,
you could place the common setting in a custom extension, see:
http://ez.no/doc/ez_publish/techn...guration/site_management#comment2144
Of course in this way you can't edit those setting from the web interface.

> It seems like it could enable ezpublish to automatically choose a siteaccess

in your override/siti.ini

[SiteSettings]
DefaultAccess=it

Ciao,
Daniele

Monday 19 December 2005 11:59:56 am

Hi there, in my override/site.ini.append.php there is already DefaultAccess=main, but it seems to work only for the homepage...
Every other page falls back to standard layout... mah
Max

Friday 30 December 2005 7:23:25 am

Hi Massimo

Regarding the AdditionalSiteDesignList issue there is a bug in current versions of eZ that uses the incorrect order for these files in some cases. See http://ez.no/bugs/view/7613

Cheers
Bruce

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from