Share » Forums » Setup & design » Compare node class

Compare node class

Compare node class

Thursday 07 April 2011 5:02:11 am - 1 reply

Author Message

Marko Žmak

Thursday 07 April 2011 6:39:56 am

You should compare the identifier of the class with the class_identifier of $node.object (where we suppose your node is in the $node variable).

Or you could compare the class ID (16) with the contentclass_id.

See documentation for ezcontentobject and ezcontentclass:

  • http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Objects/ezcontentobject
  • http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Objects/ezcontentclass

and also try this in your template:

{$class|attribute(show)}
{$node.object|attribute(show)}

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

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

36 542 Users on board!

Forums menu