I have a Toolkit Snippet that I would like to convert. It pulls in the specific sub_categories for a category assigned to it
ps ... I guess we should either create a forum or a GitHub dedicated to converting Toolkit Snippets.
Code:
<mvt:assign name="g.category_code" value="'category_code_here'" /> <mvt:item name="toolkit" param="subcat|ccount|g.category_code" /> <mvt:if expr="ccount GT 0"> <mvt:foreach iterator="sub_category" array="sub_categories"> <div class="col-md-4 col-sm-4 col-xs-6"> <div class="pbox image psmall"> <div> <mvt:item name="toolkit" param="catimage|bigimage|l.all_settings:sub_category:code" /> <mvt:if expr="bigimage"> <a href="/&mvta:sub_category:code;.html"><img src="&mvte:global:bigimage;" class="img-responsive" alt="&mvt:sub_category:name;" title="&mvt:sub_category:name;"></a> <mvt:else> <a href="/&mvta:sub_category:code;.html"><img src="https://placehold.it/250x150&text=250x150+image" class="img-responsive" alt="Shop &mvte:sub_category:name; Now" title="Shop &mvt:sub_category:name; Now" /></a> </mvt:if> <p><strong><a href="/&mvta:sub_category:code;.html">&mvt:sub_category:name;</a></strong></p> </div> <div class="clearfix"></div> </div> </div> </mvt:foreach> </mvt:if>
ps ... I guess we should either create a forum or a GitHub dedicated to converting Toolkit Snippets.
Comment