Forums / Setup & design / Multilanguage siteaccess and overrides

Multilanguage siteaccess and overrides

Author Message

Massimo Sanna

Wednesday 14 December 2005 6:11:34 am

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

Massimo Sanna

Friday 16 December 2005 3:22:27 am

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

Antonio Buonanno

Saturday 17 December 2005 2: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

Daniele P.

Monday 19 December 2005 12: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/technical_manual/3_6/concepts_and_basics/configuration/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

Massimo Sanna

Monday 19 December 2005 2: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

Bruce Morrison

Thursday 29 December 2005 10:23:25 pm

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

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

eZ debug

Timing: Jan 18 2025 00:52:29
Script start
Timing: Jan 18 2025 00:52:29
Module start 'content'
Timing: Jan 18 2025 00:52:29
Module end 'content'
Timing: Jan 18 2025 00:52:29
Script end

Main resources:

Total runtime0.1258 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 587.8281180.8281
Module start 'content' 0.00580.0061 768.6563102.0234
Module end 'content' 0.01190.1139 870.6797532.3281
Script end 0.1257  1,403.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.6932200.0002
Check MTime0.00141.1434200.0001
Mysql Total
Database connection0.00070.536610.0007
Mysqli_queries0.087069.17951410.0006
Looping result0.00100.79261390.0000
Template Total0.113490.210.1134
Template load0.00090.679810.0009
Template processing0.112689.470910.1126
Override
Cache load0.00060.476310.0006
Sytem overhead
Fetch class attribute can translate value0.00060.444410.0006
XML
Image XML parsing0.00030.226510.0003
General
dbfile0.00312.4953200.0002
String conversion0.00000.005530.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.0001 secs