Share » Forums » General » Nested template overriding

Nested template overriding

Nested template overriding

Monday 09 February 2009 3:06:45 pm - 4 replies

Modified on Monday 09 February 2009 3:13:05 pm by Oliver Dzierzon

Author Message

André R.

Monday 09 February 2009 4:02:29 pm

Direct include does not have any override rules (condidtions, like for instance class_identifier), you need to use node_view_gui to do that(se / search doc).

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

Oliver Dzierzon

Tuesday 10 February 2009 3:51:07 am

Thank you, now it works using the following code.

{foreach fetch_alias('formular',hash('parent_node_id', $module_result.node_id)) as $article}
	{node_view_gui view="anfragenAllgemein" content_node=$article.contentobject_id}
{/foreach}

ciao olli

André R.

Tuesday 10 February 2009 3:55:40 am

why: content_node=$article.contentobject_id ???

It should be: content_node=$article as you need to pass the node object to make the overrides work correctly.

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

Oliver Dzierzon

Tuesday 10 February 2009 5:10:28 am

Thank you. there is no special reason.
It was only the output of my confused brain ;-)

I fixed it

ciao Olli

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

36 542 Users on board!

Forums menu