brennan
6/20/2016 - 8:51 PM

Output Size Attribute As List.html

<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;