Forums / Setup & design / Multilanguage site: Do I really need two design dirs?

Multilanguage site: Do I really need two design dirs?

Author Message

Osichr Hayez

Friday 29 September 2006 12:11:55 am

I've set up a site that has two languages. I have my override files for the main language in design/plain, and the override files for the secondary language in design/en. This works fine, but I dont really like it - because the files are identical!

The small differences between the files, I sort out by this code.

{if eq($site.design,"plain")}
   {* main content *}
{elseif eq($site.design,"en")}
   {* secondary content *}
{/if}

So my question is; How can I do the same using only one set of files?

eZp 3.6.8 running at SunOS 5.10

Ulrich L.

Friday 29 September 2006 12:34:33 am

From my point of view you don't have to use two different design directories.

In setting/siteaccess/(my_sitaccess_xy)/site.ini.append.php just set the design directory to the same value.

[DesignSettings]
SiteDesign=my_design     #(e.g. in case of wizard-generated shop site this is "shop_site")
AdditionalSiteDesignList[]=base

However, I don't know the impacts of changing these settings while a large site is already running...

I made the experience that a common var directory can have advantages as well in terms of cache handling (otherwise I had the effect that different languages were difficult to keep up-to-date, obviously because of remains in different caches.)

Can somebody confirm this please? Or am I totally wrong...?

Juliusz Calyniuk

Friday 29 September 2006 12:39:43 am

You can set up only one design form your multilingual sites.
Look at the documentation to assure your language configuration is correct.
http://ez.no/doc/ez_publish/technical_manual/3_8/features/multi_language

After that use your design settings for siteaccesses:

[DesignSettings]
SiteDesign=my_design
AdditionalSiteDesignList[]=my_next_design
StandardDesign=standard

For <i>my_design</i> and <i>my_next_design</i> use your design names.
Design settings should be the same for all your siteaccesses.

WebStyle Systems | http://www.ws-webstyle.com

Ulrich L.

Friday 29 September 2006 3:46:44 am

Juliusz,
perhaps you can tell us what you think about dedicated or common var directories with different siteaccesses?
Thanks,
U.

Osichr Hayez

Tuesday 10 October 2006 12:07:45 am

I'm not sure why, but I couldnt make this work. So before spending hours at this, I gave up and used a symlink instead - wich works for me. Thanks anyhow : )

Xavier Dutoit

Wednesday 11 October 2006 12:56:09 am

Just to confirm that you don't need separate var nor design dirs.

X+

http://www.sydesy.com