Forums / Developer / current id_class / Comment50240

Author Topic

André R.

Thursday 09 October 2008 3:27:38 am

Comment50240

Avoid the two last examples unless you need to fetch the entire content class object ($node.object.content_class).

For identifier:
{$node.class_identifier}
or
{$node.object.class_identifier}

Same result, just fewer database calls.

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