Forums / Setup & design / Problem with the switch command / Comment20860
Niklas Gunnäs
Monday 20 March 2006 3:43:07 am
I dont get it.... :-(
I understand that image showed will be incorrect from array3. But what I cant understand is why {attribute_view_gui attribute=$Child:item.object.data_map.status} always show the correct value. If it was possible to use
<img src={concat(status, attribute_view_gui attribute=$Child:item.object.data_map.status, ".gif")|ezimage}> {attribute_view_gui attribute=$Child:item.object.data_map.status}%
it would show correct image for example status40.png and 40%
Used your exempel but it returned a list of all images and showing the correct value after.
Is there not a better way then this
$Child:item.object.data_map.status.contentclass_attribute.content.options[$:item.object.data_map.status.content[0]].name
to get the value from status