Maybe I explained myself not clear engough...
My problem is to access this array ($collection) by the attribute name.
The structure getting from |attribute(show) is an number indexed array:
>...
> data_text string 'tralla'
> contentclass_attribute_name string 'name'
>...
1
>...
> data_text string 'trallafdsds'
> contentclass_attribute_name string 'messege'
>... ...
In my temlate code I would like to access the fields this way:
{section show=$collection.attributes.message}
Message:
-----------------
{$collection.attributes.message.data_text|wash} {/section}
Is this possible somehow? Or, what is the template code to construct an string indexed array from the collection array?
>The only problem with this is you must know what the index of the array >refers to, which the attribute(show) has revealed.
That is exactly my problem.
If you use checkboxes in a form they will only result in an new array item if they were checked. (Please correct me if I am wrong) Otherwise the array will be shifted and all indexes after the checkbox will change.
My conclusion for now is to place all checkboxes at the end of the form class to keep the other indexes reliable. Not really nice...
Do you know how it is possible to construct an new array containing the 'data_text' values indexed by the 'contentclass_attribute_name' from '$collection'?
In future I will use
tags, looks cool :)
Marko
You must be logged in to post messages in this topic!