Share » Forums » General » hash() - creating associative array

hash() - creating associative array

hash() - creating associative array

Thursday 16 December 2004 2:18:37 am - 1 reply

Modified on Thursday 16 December 2004 2:45:28 am by Łukasz Serwatka

Author Message

Łukasz Serwatka

Thursday 16 December 2004 3:46:58 am

Solution ... Thanks to xbit from official $eZpublish IRC channel for concat suggestion ;-)

{let 
      class_attribute=fetch( 'content', 'class_attribute', hash( 'attribute_id', 244 ) )
      att_values=hash()}

{section loop=$class_attribute.content.options}
    {set att_values=$att_values|append(concat($:item.name))} 
{/section}

{section loop=$att_values var=myvar}
{$myvar}
{/section}
{/let}

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