brennan
6/1/2017 - 9:47 PM

output_size_attribute.js

<mvt:comment>
| Get Attributes for Size
| Output pipe (|) seperated list
</mvt:comment>

<mvt:assign name="g.size_list" value="''" /> 

<mvt:foreach iterator="size" array="record:attributes:size">
	<mvt:assign name="g.size_list" value="g.size_list $ l.settings:size $ '|'" />
</mvt:foreach>

<mvt:assign name="g.size_list" value="substring( g.size_list, 1, len( g.size_list )-1 )" />
<mvt:assign name="g.size_list" value="miva_csv_encode( g.size_list, '|' )" />

Output: &mvt:global:size_list;