finding object class ID in templates

finding object class ID in templates

Thursday 18 September 2003 5:57:18 am - 3 replies

Author Message

Alex Jones

Thursday 18 September 2003 6:59:45 am

Have you tried looking at the attribute list for $Thing to see where it lists the class?

Place {$Thing|attribute(show)} or {$Thing:item|attribute(show)} in your code to see all of the attributes assigned to the item. One of the attributes should be the class and its corresponding label.

Alex

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

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

Yvan Cottyn

Thursday 18 September 2003 7:34:02 am

Thank you Alex, that was a very useful hint.
It was $Thing:item.object.contentclass_id i was looking for :)

Alex Jones

Thursday 18 September 2003 8:42:12 am

Glad to help. Knowing about |attributes has saved me from frustration many times. :)

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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.