Tuesday 22 March 2005 5:02:40 pm
Hi, Coming from a PHP background (new to ezPublish), I don't understand why this doesn't work:
{section var=size loop=$node.object.data_map.size.content}
{$node.object.data_map.size.class_content.options.[$size].name}
{/section}
I tried the following as well (didn't work):
{section var=size loop=$node.object.data_map.size.content}
{let current=$node.object.data_map.size.class_content.options.[$size]}
{$current.name}
{/section}
I am attempting to access the name for the current option ([$size]) applied to the item. However, the following does properly printout the name I am trying to access dynamically in the above loop.
{$node.object.data_map.size.class_content.options.0.name}
Can someone clarify why this doesn't work for me? Thanks!
|