jen
6/1/2017 - 9:46 PM

output_color_attribute.js

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

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

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

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

Output: &mvt:global:color_list;