EKM Tag: [ekm:recordcount]
This tag is used to output an integer value for the number of products or categories on a specific page. This page, by default, is the page you are currently viewing, however you can define a specific page by ID.
This tag cannot be used to count products or categories on the homepage
- Tag Information
- Nesting This Tag
[ekm:recordcount] data='products'; location='12'; [/ekm:recordcount]
This attribute is used to select the type of data you would like to count. You can use the
recordcount tag to count both categories and products.
Select the location from which you would like to count the data.
The EKM system allows for some tags to be nested within other tags.
When nesting this tag you need to prefix the opening tag with
ekm:nested_ and all single quotes
' within the tag need to be changed to double quotes
[ekm:showdata] ... output_item=' [ekm:nested_recordcount] data="products"; location="[id]"; [/ekm:nested_recordcount] '; ... [/ekm:showdata]