Forums / Setup & design / Two siteaccesses - could I have only one set of files?
Osichr Hayez
Friday 07 July 2006 1:09:07 am
My site has two languages. I am using one siteaccess for each language. In my design directory I have one folder for each language, so when I do some changes I have to put my template-files into both directory structures. It works fine, but I would prefer to only have one design directoy.
Is there a way I can use only one set of design-files, when I have two siteaccesses? Can I point my secondary siteaccess to my primary set of files?
[eZ publish version 3.6.8 running at sunOS 5.10]
Łukasz Serwatka
Friday 07 July 2006 1:20:42 am
Hi Osichr,
Setting which control this is in the site.ini.append.php file:
[DesignSettings] SiteDesign=primary_design AdditionalSiteDesignList[]=additional_site_design_if_needed
However you will have to take care about override.ini.append.php consistency for both siteacceses. For example when you add new template via admin interface.
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/designsettings/sitedesign
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/designsettings/additionalsitedesignlist
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog
Friday 07 July 2006 1:58:15 am
Thank you for your answer.
So then If my pagelayuotoverride.tpl doesnt exist in the siteaccess SiteDesign, ez publish will look for a file with the same filename in the directories found in AdditionalSiteDesignList and display that one instead. Am I correct?
(When I do this, and clear cache, my site is blank under one language cause ez publish cant find my pagelayoutoverride)
Friday 07 July 2006 2:21:22 am
Yes, that is correct. What errors do you have in debug output? Try manually remove all cache files from var/cache/* and var/(site)/cache/*.