Share » Forums » Developer » Section question

Section question

Section question

Wednesday 21 April 2004 7:05:19 am - 3 replies

Author Message

Alex Jones

Wednesday 21 April 2004 7:31:14 am

<i>{$module_result.section_id}</i> or <i>{$DesignKeys:used.section}</i> should do it.

Also, so you know you can use <i>|attribute(show)</i> to view all of the available attributes for an item. For example, to see all of the attributes for the current node you can add <i>{$node|attribute(show)}</i> to your template.

More info:
Template variables set by ezPublish: http://ez.no/ez_publish/documentation/customization/custom_design/template_variables_set_by_ezpublish
Miscellaneous (includes attribute info): http://ez.no/ez_publish/documentation/development/libraries/ez_template/operators/miscellaneous

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

K259

Wednesday 21 April 2004 7:37:42 am

Alex,
I've tried to list all the attributes in our system in many pages(templates), but I don't get any results..do I have to turn it on somewhere?

In a demo-installation this works fine, but not on our site :/

Any tip?

Alex Jones

Wednesday 21 April 2004 8:01:46 am

Hrrrm, that may be due to having caching enabled. Try an alternate way of viewing the attributes. You can try using <i>{$module_result.node_id|attribute(show)}</i> within a template or <i>{$:item|Attribute(show)}</i> within a loop.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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

36 542 Users on board!

Forums menu