Monday 11 April 2005 5:58:36 am
To get articles displayed differently in two, or more, folders in eZ publish you need to use some kind of override like you are saying. The first option is to use a section override. This means that you need to assign a unique section to both folders and then create an override for that based on the section id. The example below shows a section override for a folder for section 42. The folder needs to have a section with the id 42 assigned to make this work. [news_folder]
Source=node/view/full.tpl
MatchFile=full/news_folder.tpl
Subdir=templates
Match[class_identifier]=folder
Match[section]=42
See example below for an override of the folder template based on the subtree products/hardware. [folder_override]
Source=node/view/full.tpl
MatchFile=full/hardware_folder.tpl
Subdir=templates
Match[class_identifier]=folder
Match[url_alias]=products/hardware
--bård
Documentation: http://ez.no/doc
|