Share » Forums » Developer » How to acces to class attribute

How to acces to class attribute

How to acces to class attribute

Wednesday 11 May 2005 3:12:53 am - 2 replies

Author Message

Ɓukasz Serwatka

Monday 30 May 2005 1:22:54 am

Hi Albert,

You will have to fetch node data in pagelayout.tpl like

{let node_data=fetch( content, node, hash( node_id, $module_restul.node_id ) )}

   {* check if current node is folder datatype *}

   {* display background color *}
   {$node_data.object.data_map.color.data_text}

{/let}

You can also use section

{* if node id is 2 (folder) show color red *}
{section show=eq( $module_result.node_id, 2 )}
   {* display background color *}
{/section}

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

Albert Hornos

Tuesday 31 May 2005 1:18:39 am

Thanks again Lukasz!!!
Finally I used sections it's given to me more adventatges.

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

36 542 Users on board!

Forums menu