By: Peter
Date: 2011-03-02
Time: 15:42
|
Array Merge & Display Key
Hello!
I have an array:
array(
array(
'name' => 'namevalue',
'auswahloptionen' => array('sdf1234' => array ('last'=>'lastval' , 'vor'=>'vorval'))
),array...
|
Template:
<div>
<h1>[frage.name;noerr;block=div;sub1=(auswahloptionen)]</h1>
<option value="[frage_sub1.auswahloptionen.key]">[frage_sub1.last;block=option]</option>
</div>
|
I want the key sdf1234 displayed in the value of the option. Is this possible without duplicating the key in the value of the array?
Thanks
Peter
|
By: Skrol29
Date: 2011-03-04
Time: 00:19
|
Re: Array Merge & Display Key
Hi Peter,
Just replace [frage_sub1.auswahloptionen.key] with [frage_sub1.$]
|
By: Peter
Date: 2011-03-04
Time: 09:33
|
Re: Array Merge & Display Key
Oh yes this worked. Thank you, i must be blind...
|
|
Posting in progress.
Please wait...
|