This snippet of code posted here https://docs.miva.com/code-samples/subcat does a great job of displaying the sub-categories - too good of a job - as it also displays the inactive categories. How do I display just the active categories?
Code:
//load current category data <mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( g.Category_Code, l.settings:current_category )" /> <mvt:do name="l.result" file="g.Module_Library_DB" value="CategoryList_Load_Parent( l.settings:current_category:id, l.settings:sub_categories )" /> <mvt:foreach iterator="subcat" array="sub_categories"> &mvt:subcat:active; &mvt:subcat:agrpcount; &mvt:subcat:code; &mvt:subcat:disp_order; &mvt:subcat:id; &mvt:subcat:name; &mvt:subcat:parent_id; </mvt:foreach>
Comment