This site has been archived. To learn more about our current products Ibexa Content, Ibexa Experience, Ibexa Commerce head over to the Ibexa Developer Portal

eZ Community » Forums » Setup & design » How to detect node and OE attribute...
expandshrink

How to detect node and OE attribute in embed template and custom tags

How to detect node and OE attribute in embed template and custom tags

Friday 16 July 2010 7:08:17 pm - 3 replies

When in template for embed object (embed.tpl), how can I detect in which node and which OE attribute is this object inserted? What variables are available?

The same question goes for custom tags.

Saturday 17 July 2010 1:07:23 am

For the node, try $#node

For other available variables, check out this extension:

http://projects.ez.no/show_variables

You might be able to use $#DesignKeys

Sunday 18 July 2010 3:54:19 pm

Yes the $#node works.

As for the attribute there's an $attribute variable in the ContentAttribute namespace, the show_variables extension did the work.

But I cannot find out how can I address this variable in ContentAttribute namespace, using {$attribute} doesn't work. Any ideas?

Modified on Sunday 18 July 2010 5:29:54 pm by Mavko Žmak - Žmale

Monday 19 July 2010 5:34:56 am

Try $#ContentAttribute:attribute

Sounds like a possible candidate for an override rule.

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from