EKM Tag: [ekm:pageid]
This tag is used to output the ID of the page you are currently viewing. The ID can be output with a page type prefix or just the ID alone.
- Tag Information
- Nesting This Tag
pageid
tag outputs both the page type and ID within brackets. This is useful if you have webpages, category pages or product pages with the same ID.
[ekm:pageid][/ekm:pageid]
[ekm:pageid]idonly='yes';[/ekm:pageid]
idonly='yes';
You can select whether or not you wish to output just the ID or both the ID and page type. In most cases you will want to output the page type as you may find that both a product, webpage or category share the same IDs.
This tag is typically used within logic statements or tags that require IDs
Within system pages you will receive these IDs
On multiple page checkout only
On multiple page checkout only
The EKM system allows for some tags to be nested within other tags.
In most cases you would nest this tag within a showdata tag's 'location' attribute or within the ekm:categorypagename
tag's categorypageid
attribute.
When nesting this tag need to prepend the open and close tags with nested_
and change all single quotes '
to double quotes "
[ekm:if]
iftype='EQUALS';
ifvalue='[ekm:nested_pageid][/ekm:nested_pageid]';
ifvalue2='0';
ifthen='You are on the homepage';
ifelse='You are not on the homepage';
[/ekm:if]