Categoryid
ekmTags: [ekm:categoryid]
This tag simply outputs the category id number of a specified category.
| Full Tag | |
|
[ekm:categoryid] depth='default'; [/ekm:categoryid] | |
| depth | |
|
Used to specify the depth from the homepage / top level. | |
| Possible Values | |
| Example : toys > electronics > apple > ipods | |
| default | Using default will return the current category or if used on a product page will return the category the current product is in. default would return the category id for ipods |
| 0 | This will return the top level category id for the current product or sub category 0 would return the category id for toys |
| 1, 2, 3, etc... |
This will return the following result from the example above: 1 would return the category id for electronics |


