Accessing Array Element

Accessing Array Element

Monday 31 January 2011 5:51:31 am - 1 reply

Author Message

Thiago Campos Viana

Monday 31 January 2011 8:21:47 am

Hi Anaya

First you need to check if you assigned the variable to a template variable, If yes you could use {$varName|attrbiute(show,1)} to show if your var has the right content, then you could just show the content in this way:

{foreach $varName as $value}

<div>

{$value.sLegType} - {$value.ClassInfo[0].sCPS} {$value.ClassInfo[1].sCPS} -

</div>

{/foreach}

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.