Forums / Developer / Re-use a site

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?