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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 16:22:57
Script start
Timing: Jan 18 2025 16:22:57
Module start 'layout'
Timing: Jan 18 2025 16:22:57
Module start 'content'
Timing: Jan 18 2025 16:22:57
Module end 'content'
Timing: Jan 18 2025 16:22:57
Script end

Main resources:

Total runtime0.0134 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1563152.6563
Module start 'layout' 0.00520.0026 740.812539.4922
Module start 'content' 0.00770.0038 780.304793.4766
Module end 'content' 0.01150.0019 873.781338.3047
Script end 0.0133  912.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.8954140.0002
Check MTime0.00118.2989140.0001
Mysql Total
Database connection0.00086.278110.0008
Mysqli_queries0.002216.346530.0007
Looping result0.00000.098010.0000
Template Total0.001511.310.0015
Template load0.00086.196110.0008
Template processing0.00075.112610.0007
Override
Cache load0.00064.251910.0006
General
dbfile0.00031.885480.0000
String conversion0.00000.046340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs