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

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 04:29:31
Script start
Timing: Jan 18 2025 04:29:31
Module start 'layout'
Timing: Jan 18 2025 04:29:31
Module start 'content'
Timing: Jan 18 2025 04:29:33
Module end 'content'
Timing: Jan 18 2025 04:29:33
Script end

Main resources:

Total runtime1.2957 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 589.1484152.6406
Module start 'layout' 0.00740.0067 741.789139.4766
Module start 'content' 0.01411.2804 781.2656660.0625
Module end 'content' 1.29440.0012 1,441.328116.1406
Script end 1.2956  1,457.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.3141160.0003
Check MTime0.00150.1191160.0001
Mysql Total
Database connection0.00070.053110.0007
Mysqli_queries1.223594.4300700.0175
Looping result0.00080.0608680.0000
Template Total1.227094.720.6135
Template load0.00230.175920.0011
Template processing1.224794.522220.6124
Template load and register function0.00010.007810.0001
states
state_id_array0.00370.285310.0037
state_identifier_array0.00230.174320.0011
Override
Cache load0.00200.1568550.0000
Sytem overhead
Fetch class attribute can translate value0.00070.056440.0002
Fetch class attribute name0.00130.099180.0002
XML
Image XML parsing0.00140.108440.0004
class_abstraction
Instantiating content class attribute0.00000.0018100.0000
General
dbfile0.00120.0917220.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 41
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs