Share » Forums » Developer » checking the class type of an object

checking the class type of an object

checking the class type of an object

Wednesday 25 May 2005 6:20:13 am - 3 replies

Author Message

Łukasz Serwatka

Thursday 26 May 2005 2:46:45 am

Simple example

{* if folder class *}
{section show=eq( $item.object.content_class.identifier, "folder" )}
   {attribute_view_gui attribute=$item.object.data_map.bu}
{/section}

{* if atricle class *}
{section show=eq( $item.object.content_class.identifier, "atricle" )}
   show atricle attribute
{/section}

As always very useful is "attribute" operator, it's good to preview all node/object attributes {$node|attribute( show, 2 )}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

zaxofeel .v

Thursday 26 May 2005 6:34:39 am

Dear Lukasz

thanks a million, it worked perfectly :0)
and thanks for your guides, i am still a beginner as u can see.
thanks again.

Łukasz Serwatka

Thursday 26 May 2005 6:43:08 am

You`re welcome ;)

Keep your eyes open, if you find someone with similar problem just pass the tip ;)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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

36 542 Users on board!

Forums menu