Forums / Developer / Template override in multi language site

Template override in multi language site

Author Message

Salvatore Guarino

Wednesday 23 May 2007 4:34:19 am

Hi,
I have just configured a new site with eZpublish 3.9.2. The site will be in 4 languages, and I choose these during the setup wizard. I noticed that I have in <i>/settings/siteaccess</i> 5 siteaccess for the frontend site: a siteaccess named for example <i>mysite</i>, and a siteaccess for each language. When I create a new template, I have to specify the override rule in every override.ini.append.php file? It seems so... There is a way to "global" override all the siteaccess?

Thx,

Salvatore

Xavier Dutoit

Wednesday 23 May 2007 5:32:38 am

Hi,

What I usually do in these cases and to have one main override and symlink the other siteaccess to it

http://www.sydesy.com

Karl Latiss

Wednesday 23 May 2007 5:04:44 pm

Or you could use AdditionalSiteDesignList[] in each siteaccess' site.ini:

[DesignSettings]
SiteDesign=siteaccess_site_design
AdditionalSiteDesignList[]=common_site_design
AdditionalSiteDesignList[]=base

Atvert Systems
http://www.atvert.com.au

Bruce Morrison

Wednesday 23 May 2007 6:03:08 pm

Hi Salvatore

You could also have an extension that contains the settings/override.ini.append.php that is enabled for all siteaccesses. Also put a site.ini.append.php here with the common DB settings etc.

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

Salvatore Guarino

Friday 25 May 2007 6:25:04 am

Hi,

thank you for the responses!

I will try with the symlink, it seems the easiest way.

Thank you and bye,

Salvatore

André R.

Friday 25 May 2007 8:15:06 am

For those that want to use the os safe way of doing this that Bruce is mentioning, remember to only specify the extension for the frontpage siteaccess using ActiveAccessExtensions.

So in /settings/siteaccess/*/site.ini.append.php:

[ExtensionSettings]
ActiveAccessExtensions[]=my_settings

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom