Friday 24 June 2005 9:20:34 am
Hi F-X Try this:
{let hasharray=hash('key1','value1','key2','value2')
}
<p> Hash array looping with a var:</p>
{section var=element loop=$hasharray}
key: <b>{$element.key}</b> value: <b>{$element}</b><br />
{/section}
<p> Hash array looping with a name (depreciated)</p>
{section name=element loop=$hasharray}
key: <b>{$element:key}</b> value: <b>{$element:item}</b><br />
{/section}
{/let}
Have a nice weekend -paul
eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans
|