This may seem small, but avoids php.
Can be used to divide values into parts, like in this example: ref_number and product_title.
Also helps when client's CSV is not well structured (not all values separated by columns..)
Can be used to divide values into parts, like in this example: ref_number and product_title.
'119108 - Some Amazing Product'
Reference #: 119108
Product Title: Some Amazing Product
- Code: Select all
<cms:set msg='119108 - Some Amazing Product' />
<cms:each msg sep=' - ' >
<cms:if k_count='0' >
<cms:set ref_number=item 'global' />
<cms:else />
<cms:set product_title=item 'global' />
</cms:if>
<cms:dump />
</cms:each>
Reference #: <cms:show ref_number /><br/>
Product Title: <cms:show product_title />
Also helps when client's CSV is not well structured (not all values separated by columns..)