Tuesday 12 February 2008 11:16:42 pm
After reading the documentation I created a multiple selection attribute and tried to output the selected values with the following code:
{for 0 to $node.object.data_map.topics.content|count()|dec as $counter}
{$node.object.data_map.topics.class_content.options[$node.object.data_map.topics.value[$counter]].name},
{/for}
It does show all the selected values but it also shows "Array" at the end. I'm assuming my counter is going 1 element past the end of the array but I don't understand why. Has anyone else had this problem or see what I'm doing wrong?
working at www.wardnet.com
blogging at www.jamesward.ca
|