Re-use a site

Author Message

Rinze Cats

Monday 27 September 2004 5:23:48 am

[DesignSettings]
# The standard design, is used as fallback design
# if the element is not in the sitedesign
StandardDesign=user 
# The design of the site
SiteDesign=intranet

Hi. I found the above code in one the forums. It is a sollution to use a site's templates as a default for another site. (for an intranet / internet sollution with centralized code and without rebuilding the whole). This is however partially working (I think). Here is my problem:

I include an override statement for the design 'intranet'; main.tpl. The file does not exist in the intranet site, so it should check the 'user' design for the file. The file exist in the override/templates/ directory. However, the debug output displays the following error:

eZTemplateDesignResource::overrideArray, tried files 

[0]=>
  string(34) "design/user/templates/main.tpl"
  [1]=>
  string(43) "design/standard/override/templates/main.tpl"
  [2]=>
  string(34) "design/standard/templates/main.tpl"
  [3]=>
  string(47) "design/intranet/override/templates/main.tpl"
  [4]=>
  string(38) "design/intranet/templates/main.tpl"

The problem is that the code does not address the override folder in the user design, where the file is located.

Anybody got an idea what might be wrong?

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 22:17:49
Script start
Timing: Jan 18 2025 22:17:49
Module start 'layout'
Timing: Jan 18 2025 22:17:49
Module start 'content'
Timing: Jan 18 2025 22:17:49
Module end 'content'
Timing: Jan 18 2025 22:17:49
Script end

Main resources:

Total runtime0.5821 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 588.9063152.6094
Module start 'layout' 0.00600.0032 741.515639.3984
Module start 'content' 0.00920.5715 780.9141406.0000
Module end 'content' 0.58080.0013 1,186.91418.2031
Script end 0.5820  1,195.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.6058160.0002
Check MTime0.00140.2354160.0001
Mysql Total
Database connection0.00090.162510.0009
Mysqli_queries0.545893.7692460.0119
Looping result0.00040.0714440.0000
Template Total0.553295.020.2766
Template load0.00200.345020.0010
Template processing0.551294.701520.2756
Template load and register function0.00010.022410.0001
states
state_id_array0.00130.227310.0013
state_identifier_array0.00130.229020.0007
Override
Cache load0.00160.266890.0002
Sytem overhead
Fetch class attribute can translate value0.00040.073410.0004
Fetch class attribute name0.00110.184510.0011
XML
Image XML parsing0.00010.016310.0001
class_abstraction
Instantiating content class attribute0.00000.000710.0000
General
dbfile0.00060.1048100.0001
String conversion0.00000.001840.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs