Forums / Setup & design / Template override conditions

Template override conditions

Author Message

Fabien Scantamburlo

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.

André R.

Wednesday 23 April 2008 1:33:48 am

Read the comment(s) on the doc page:
http://ez.no/doc/ez_publish/technical_manual/4_0/reference/template_override_conditions#comment17895

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom