Wednesday 14 March 2007 1:35:07 am
Hi Jon and Christian, Try this ... it's worked for me. If you create an extension and put your design templates in an appropriate folder, for example: /extension/myextensionname/design/standard/templates/ Then enable the extension via the admin interface (or via ini files ... shouldn' t matter). Then edit your siteaccess override.ini.append.php (eg in eng siteaccess folder for 3.9.0) add add an override items - for example:
[my_template_override]
Source=node/view/full.tpl
MatchFile=my_template_override.tpl
Subdir=templates
Match[node]=143
<b>I suspect that as long as the following conditions are met, everything will work: </b> 1. [Most Important...] the matchfile's name is different from those in the ezwebin extension (ie you're not trying to create a matchfile called pagelayout.tpl) 2. [Perhaps ...] the name of the template override titlie/identifier needs to be different (ie the [my_template_override] shown above.
<b>Why? </b> EZ Publish seems to search for template matchfiles across any available extensions / designs. Changing the name of your templates means they're not going to be confused with ezwebin ones. You can see / test this by changing the matchfile name in your override.ini.append.php file to something that just does not exist in your ezpublish. For example:
...
MatchFile=theres_no_way_this_template_exists.tpl
...
If you've got debug / template debug activated, you'll see the results of EZ Publish searching through extensions / designs trying to find the file. For example:
Error: eZTemplateDesignResource::overrideArray Mar 14 2007 19:17:15
Custom match file: path 'theres_no_way_this_template_exists.tpl' not found in any resource. Check template settings in settings/override.ini
Error: eZTemplateDesignResource::overrideArray, tried files Mar 14 2007 19:17:15
design/standard/templates/theres_no_way_this_template_exists.tpl, design/standard/override/templates/theres_no_way_this_template_exists.tpl ... (etc)
Hope this helps. Regards
- Paul
|