eZ Community » Forums » Setup & design » Template override conditions
expandshrink

Template override conditions

Template override conditions

Wednesday 23 April 2008 10:14:57 am - 1 reply

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.

Wednesday 23 April 2008 10:33:48 am

Read the comment(s) on the doc page:
http://ez.no/doc/ez_publish/techn...ate_override_conditions#comment17895

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from