Friday 15 September 2006 8:00:50 am
Hi David
Does this
{$newsFeatured.object.data_map.featured.content|attribute('show', 2)}
output all 3 lines or just one for each time you call it up? I hope it is the latter as otherwise I am not sure what datatype you use. I will assumethat the output is just one of these lines.
Attribute Type Value
0 string 1
This means that your attribute has an array as content which has one entry. This entry has the key 0, the value is of type string and has the content 1 (or 0 in one of your other lines). This number is the key of your selection (basically the number of the entry in the selection counted zero based). If you would have a checkbox 1 would mean that it is selected, 0 not selected (although in case you would not have an array as content of the attribute but the number itself) So to properly compare you have to access the first entry of this array. You can do that like this:
{$newsFeatured.object.data_map.featured.content[0]}
This is what you have to compare with. Greetings Claudia
|