In the past we used Bill's Toolkit to array the subcategories into a list
Now the code can not pull the subcategory URL.
What does appear is the Image, Sub Cat Name and custom Category Field.
What will no longer work is the URL. None of the tokens seem to work.
the original went
<mvt:foreach array="cattree_categories" iterator="cattree_category">
<mvt:if expr="l.settings:cattree_category:parent_id EQ l.settings:category:id">
<mvt:assign name="l.null" value="miva_array_insert(l.settings:subcats, l.settings:cattree_category, -1)" />
</mvt:if>
</mvt:foreach>
<mvt:assign name="l.settings:subcat_count" value="miva_array_elements(l.settings:subcats)" />
<mvt:if expr="l.settings:subcats GT 0">
<div class="row bg-white bottom-shadow main-content-row sub-category-layout">
<mvt:foreach iterator="sub_category" array="sub_categories">
<tbody>
<tr><td headers="Name"><a href="https://&mvt:global:domain:name;/&mvt:sub_category:code;.html ">&mvt:sub_category:name; </a> <mvt:item name="toolkit" param="categorymeta|CODE|l.all_settings:sub_catego ry:code" /></td><td headers="Description"><mvt:item name="toolkit" param="customcategory|info|l.all_settings:sub_cate gory:id|catdescription" />&mvte:global:info;</br></td><td headers="Image"><mvt:item name="toolkit" param="catimage|bigimage|l.all_settings:sub_catego ry:code" /><a href="https://&mvt:global:domain:name;/&mvt:sub_category:code;.html "><mvt:if expr="bigimage"><img src="&mvte:global:bigimage;" alt="&mvt:sub_category:name;" border="0"></mvt:if></td></tr><mvt:if expr = "(pos1 MOD 1 ) EQ 0">
</tr><tr>
<td colspan="3"><hr></td>
</tr>
<tr>
</mvt:if>
</mvt:foreach>
</tr>
</table>
</tbody>
</table>
<mvt:else>
<mvt:item name="toolkit" param="subcat|ccount|g.Category_Code" />
<mvt:if expr="ccount GT 0">
<div><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<mvt:foreach iterator="sub_category" array="sub_categories">
<td align="center"><hr align="center" width="90%" size="1">
<mvt:item name="toolkit" param="catimage|bigimage|l.all_settings:sub_catego ry:code" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="236" rowspan="2" align="left" valign="top"><a href="https://&mvt:global:domain:name;/&mvt:sub_category:code;.html "><mvt:if expr="bigimage"><img src="&mvte:global:bigimage;" alt="&mvt:sub_category:name;" border="0"></mvt:if>
</a></td>
<td colspan="2" align="left" valign="top"><a href="https://&mvt:global:domain:name;/&mvt:sub_category:code;.html ">&mvt:sub_category:name; </a> <mvt:item name="toolkit" param="categorymeta|CODE|l.all_settings:sub_catego ry:code" /></td>
</tr>
<tr>
<td width="27" align="left" valign="top"> </td>
<td width="445" align="left" valign="top">
<mvt:item name="toolkit" param="customcategory|info|l.all_settings:sub_cate gory:id|catdescription" />
&mvte:global:info;</br></td>
</tr>
</table></td>
<mvt:comment>After every 3 table cells, close the row and open a new one</mvt:comment>
<mvt:if expr = "(pos1 MOD 1 ) EQ 0">
</tr>
<tr>
</mvt:if>
</mvt:foreach>
</tr>
</table><br><br></div>
</mvt:if> </mvt:if>
</div>
<!-- end sub-category listings -->
Now the code can not pull the subcategory URL.
What does appear is the Image, Sub Cat Name and custom Category Field.
What will no longer work is the URL. None of the tokens seem to work.
the original went
<mvt:foreach array="cattree_categories" iterator="cattree_category">
<mvt:if expr="l.settings:cattree_category:parent_id EQ l.settings:category:id">
<mvt:assign name="l.null" value="miva_array_insert(l.settings:subcats, l.settings:cattree_category, -1)" />
</mvt:if>
</mvt:foreach>
<mvt:assign name="l.settings:subcat_count" value="miva_array_elements(l.settings:subcats)" />
<mvt:if expr="l.settings:subcats GT 0">
<div class="row bg-white bottom-shadow main-content-row sub-category-layout">
<mvt:foreach iterator="sub_category" array="sub_categories">
<tbody>
<tr><td headers="Name"><a href="https://&mvt:global:domain:name;/&mvt:sub_category:code;.html ">&mvt:sub_category:name; </a> <mvt:item name="toolkit" param="categorymeta|CODE|l.all_settings:sub_catego ry:code" /></td><td headers="Description"><mvt:item name="toolkit" param="customcategory|info|l.all_settings:sub_cate gory:id|catdescription" />&mvte:global:info;</br></td><td headers="Image"><mvt:item name="toolkit" param="catimage|bigimage|l.all_settings:sub_catego ry:code" /><a href="https://&mvt:global:domain:name;/&mvt:sub_category:code;.html "><mvt:if expr="bigimage"><img src="&mvte:global:bigimage;" alt="&mvt:sub_category:name;" border="0"></mvt:if></td></tr><mvt:if expr = "(pos1 MOD 1 ) EQ 0">
</tr><tr>
<td colspan="3"><hr></td>
</tr>
<tr>
</mvt:if>
</mvt:foreach>
</tr>
</table>
</tbody>
</table>
<mvt:else>
<mvt:item name="toolkit" param="subcat|ccount|g.Category_Code" />
<mvt:if expr="ccount GT 0">
<div><table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr>
<mvt:foreach iterator="sub_category" array="sub_categories">
<td align="center"><hr align="center" width="90%" size="1">
<mvt:item name="toolkit" param="catimage|bigimage|l.all_settings:sub_catego ry:code" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="236" rowspan="2" align="left" valign="top"><a href="https://&mvt:global:domain:name;/&mvt:sub_category:code;.html "><mvt:if expr="bigimage"><img src="&mvte:global:bigimage;" alt="&mvt:sub_category:name;" border="0"></mvt:if>
</a></td>
<td colspan="2" align="left" valign="top"><a href="https://&mvt:global:domain:name;/&mvt:sub_category:code;.html ">&mvt:sub_category:name; </a> <mvt:item name="toolkit" param="categorymeta|CODE|l.all_settings:sub_catego ry:code" /></td>
</tr>
<tr>
<td width="27" align="left" valign="top"> </td>
<td width="445" align="left" valign="top">
<mvt:item name="toolkit" param="customcategory|info|l.all_settings:sub_cate gory:id|catdescription" />
&mvte:global:info;</br></td>
</tr>
</table></td>
<mvt:comment>After every 3 table cells, close the row and open a new one</mvt:comment>
<mvt:if expr = "(pos1 MOD 1 ) EQ 0">
</tr>
<tr>
</mvt:if>
</mvt:foreach>
</tr>
</table><br><br></div>
</mvt:if> </mvt:if>
</div>
<!-- end sub-category listings -->
Comment