jaimex8
4/15/2016 - 7:08 PM

Build custom l.settings structure

Build custom l.settings structure

<mvt:assign name="l.settings:shapes" value="miva_array_deserialize('Bolster,Circle,L,Square,T,Trapezoid,Rectangle,Tapered')" />
<mvt:assign name="l.settings:shapeNames" value="miva_array_deserialize('Bolster,Circle,L,Square,T,Trapezoid,Rectangle,Tapered')" />
<mvt:assign name="l.settings:shapeCodes" value="miva_array_deserialize(  'custom-foam-bolster,custom-foam-circle,custom-foam-l-shape,custom-foam-square,custom-foam-t-shape,custom-foam-trapezoid,custom-foam-rectangle,custom-foam-tapered' )" />
<mvt:assign name="l.settings:shapeImages" value="miva_array_deserialize(  'custom-bolst.jpg,custom-circle.jpg,custom-l.jpg,custom-square.jpg,custom-t.jpg,custom-trap.jpg,rectangle.jpg,tapered.jpg' )" />

<mvt:foreach iterator="shape" array="shapes">
  <mvt:assign name="l.settings:shape:name" value="l.settings:shapeNames[POS1]" />
  <mvt:assign name="l.settings:shape:code" value="l.settings:shapeCodes[POS1]" />
  <mvt:assign name="l.settings:shape:image" value="l.settings:shapeImages[POS1]" />
</mvt:foreach>


<mvt:comment>
<mvt:assign name="g.mvt_debug" value="miva_array_serialize( l.settings:shapes )" />
&mvt:global:mvt_debug;
</mvt:comment>
<mvt:foreach iterator="shape" array="shapes">
  &mvt:shape:name;<br />
  &mvt:shape:code;<br />
  &mvt:shape:image;<br />
  <br /><br />
</mvt:foreach>