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

eZ debug

Timing: Jan 18 2025 16:27:44
Script start
Timing: Jan 18 2025 16:27:44
Module start 'content'
Timing: Jan 18 2025 16:27:44
Module end 'content'
Timing: Jan 18 2025 16:27:44
Script end

Main resources:

Total runtime0.1407 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.0547180.8125
Module start 'content' 0.00550.0043 769.867298.0547
Module end 'content' 0.00970.1309 867.9219526.3750
Script end 0.1406  1,394.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.4092200.0002
Check MTime0.00140.9760200.0001
Mysql Total
Database connection0.00070.500410.0007
Mysqli_queries0.101672.21291410.0007
Looping result0.00120.86641390.0000
Template Total0.130592.810.1305
Template load0.00080.582110.0008
Template processing0.129792.188610.1297
Override
Cache load0.00060.398010.0006
Sytem overhead
Fetch class attribute can translate value0.00070.511710.0007
XML
Image XML parsing0.00020.159110.0002
General
dbfile0.00161.1387200.0001
String conversion0.00000.004230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

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

Time used to render debug report: 0.0002 secs