EKM Tag: [ekm:productcategories]
This tag allows you to output a list of categories that the product you are currently viewing is within. This allows you to list not only the main category but also the categories the product has been "category managed" into.
This tag can only be used on the product page.
- Tag Information
- Nesting This Tag
htmlbefore
and each list item (if greater than one) will be seperated with the contents of htmlseparator
and ended with the contents of htmlafter
.
[ekm:productcategories]
show='yes';
htmlbefore='Categories: ';
htmlseparator=',';
htmlafter='';
[/ekm:productcategories]
show='no'';
Specify whether or not you want the tag to be output on the page.
htmlbefore='Find similar products in ';
Define the text or HTML that will appear before the list of categories value
htmlseparator='|';
Define the text or HTML that will be used between the values in the list. This will only be used if the list contains more than one record to output.
htmlafter='';
Define the text or HTML that will appear after the list of catgeories
The EKM system allows for some tags to be nested within other tags.
When nesting this tag you do not need to make any alterations.
[ekm:if]
iftype='EQUALS';
ifvalue='1';
ifvalue2='1';
ifthen='[ekm:productcategories]show='yes'; htmlbefore='Other Categories'; separator='|'; htmlafter='';[/ekm:productcategories]';
ifelse='';
[/ekm:if]