I am trying to setup a conditional for subnavigation to appear based on whether the current category code is 'xxx' or its parent category code is 'xxx'.
I have the following on the CTGY template:
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( 'category_code', l.settings:current_category )" />
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_ID( l.settings:current_category:parent_id, l.settings:parent_category )" />
I can't seem to figure out how to call up the parent category from this: mvt:parent_category doesn't work.
My conditional should work something like this:
<mvt:if expr="tolower(g.category_code) EQ 'xxx' OR (g.parent_category_ID) EQ 'xxx'">
</mvt:if>
Not sure what I am missing.
I have the following on the CTGY template:
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( 'category_code', l.settings:current_category )" />
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_ID( l.settings:current_category:parent_id, l.settings:parent_category )" />
I can't seem to figure out how to call up the parent category from this: mvt:parent_category doesn't work.
My conditional should work something like this:
<mvt:if expr="tolower(g.category_code) EQ 'xxx' OR (g.parent_category_ID) EQ 'xxx'">
</mvt:if>
Not sure what I am missing.
Comment