steveosoule
3/25/2014 - 7:01 PM

Miva Print Array Helper Function

Miva Print Array Helper Function

<snippet>
	<content><![CDATA[
<mvt:eval expr="glosub(miva_array_serialize(${1:l.settings:item}), ',', '${2:<br>}')" />
]]></content>
	<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
	<tabTrigger>mvprintr</tabTrigger>
	<!-- Optional: Set a scope to limit where the snippet will trigger -->
	<!-- <scope>source.python</scope> -->
</snippet>
<!-- FROM: http://extranet.mivamerchant.com/forums/archive/index.php/t-8829.html -->
<mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:item), ',', '<br>'))" />

<!-- EXAMPLE: -->
<mvt:foreach iterator="order" array="admin_order:orders">
	<mvt:foreach iterator="item" array="order:items">
		<mvt:eval expr="decodeattribute(glosub(miva_array_serialize(l.settings:item), ',', '<br>'))" />
	</mvt:foreach>
</mvt:foreach>