I feel like I should already know this ...
I need to modify the value of an array element in template code. Initially I wrote something in the form:
But that's not allowed; and according to the docs, you can't use the index or member attributes in mvt:assign like you can in regular Miva Script MvASSIGN.
The only solution I've thought of is to:
Thanks --
I need to modify the value of an array element in template code. Initially I wrote something in the form:
Code:
<mvt:assign name="l.settings:MyArray[l.settings:ElementNumber]:someMember" value="l.NewValue" />
The only solution I've thought of is to:
- Copy the array element to a temporary variable,
- delete the element from the array,
- modify the temporary variable, and
- Insert the temporary element back into the array.
Thanks --
Comment