Forums / Developer / Can 2 siteaccesses use the same override.ini ?

Can 2 siteaccesses use the same override.ini ?

Author Message

Benjamin Lorteau

Tuesday 24 March 2009 7:40:18 am

Hello,

I have two siteaccesses, siteA and siteB.

Each one has his own design folder, but if they don't have a particular template, they can look in the other design folder.

settings/siteaccess/siteA/site.ini :

[DesignSettings]
SiteDesign=siteA
AdditionnalSiteDesign[]=siteB

settings/siteaccess/siteB/site.ini :

[DesignSettings]
SiteDesign=siteB
AdditionnalSiteDesign[]=siteA

As long as each siteaccess has his own override.ini, everything works fine. But then I realized than the override.ini files were identical for the two siteaccesses. I moved it into settings/override folder and deleted it in both settings/siteaccess folder.

The problem is that the display is now identical with each siteaccess. siteA display didn't change, but siteB display looks like siteA now.

Anyone knows how to keep SiteDesign priorities while mutualizing override.ini settings ? Or is putting override.ini in settings/override just a big mistake no one should ever make ?

eZ Publish personal project : http://www.aeriesguard.com [fr]

Yannick Komotir

Tuesday 24 March 2009 8:03:10 am

You can put it in settings/override and delete both file's.

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

Steven E. Bailey

Tuesday 24 March 2009 3:53:53 pm

Putting it in the override will also affect the admin siteaccess which in most cases is undesirable.

What I do in this case is create a symbolic link between siteA/override.ini and siteB/override.ini

I do this a lot for sites that have multiple siteaccesses where most of the ini files are the same except for the site.ini file.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com