Wednesday 23 April 2008 1:14:57 am
Hi, I need to override a template by mean of a condition. My template is a node/view/*. I read in documentation the availability of "persistent_variable". I tried to apply this override to call a node/view/product/news.tpl as following : rule:
[news_product]
Source=node/view/full.tpl
MatchFile=product/news.tpl
Subdir=templates
Match[class_identifier]=news
Match[persistent_variable]=product
and set the <i>persistent_variable</i> call:
{set scope=global persistent_variable='product'}
However, the full used is always the node/view/full/news.tpl Thanks, Fab.
|