Monday 09 February 2009 3:06:45 pm
Is it possible to define a overriding rule for a template, which itself is included by a override template. I'm using eZPublish version 4.0.1 for example: For the template base/templates/content/main_content.tpl exits an overriding rule matching the template file base/override/templates/content/main_content_subpages.tpl. In this template "main_content_subpages.tpl" I include the artikel template base/templates/content/article_standard.tpl" Since I want to use different article templates for some content classes, I defined an overriding rule matching the template file : base/override/templates/content/article_news.tpl.
[news]
Source=content/article_standard.tpl
MatchFile=content/article_news.tpl
Subdir=templates
Match[class_identifier]=news
My problem is, that even if the class of a content object is "news" the article_standard.tpl is loaded. Before loading the article template I fetch the available content object by the following code.
{def $cont_col1 = fetch('content',
'list',
hash('parent_node_id', $module_result.node_id,
'class_filter_type', 'include',
'class_filter_array', array('article_standard','news'),
)
)
}
{foreach $cont_col1 as $content}
{include uri="design:content/standard_artikel.tpl"}
{/foreach}
Yes, I have reset the cache. ciao Olli
|