Two siteaccesses - could I have only one set of files?

Author Message

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

Osichr Hayez

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)

Łukasz Serwatka

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/*.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

Main resources:

Total runtime0.0132 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.3750151.2422
Module start 'layout' 0.00450.0021 739.617236.6953
Module start 'content' 0.00670.0052 776.312594.2031
Module end 'content' 0.01190.0013 870.515633.9922
Script end 0.0132  904.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.7585140.0002
Check MTime0.00118.1358140.0001
Mysql Total
Database connection0.00075.069710.0007
Mysqli_queries0.001813.989730.0006
Looping result0.00000.075910.0000
Template Total0.00107.410.0010
Template load0.00085.926110.0008
Template processing0.00021.447210.0002
Override
Cache load0.00064.274810.0006
General
dbfile0.001612.219180.0002
String conversion0.00000.043440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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