Use to collect category context from a page for active data.
Allowed data type: expression.
current_categoryspecifies the current category of the page being viewed by the customer. An expression that retrieves the current category from the pipeline dictionary is used.
This tag is used to specify the deepest (most specific) category being browsed on the page. If the tag appears multiple times in the same page, due to includes or other reasons, the category provided in the latest tag that appears in the HTML is the one that is counted.
<isactivedatacontext/> tag must be placed somewhere within the
<body> tags of each site page where
<script> tags are valid.
It's best practice for this tag to be included in exactly one template used to make up each HTML page. If this tag appears in multiple templates used to make up a single HTML page, the latest template takes precedence. For example, if one tag indicates the "electronics" category, and a later tag indicates the "video" category, the "video" category takes precedence. There is no negative effect if the tag appears in multiple templates with the same category value for the same HTML page, but it's redundant. If this tag doesn't appear in any templates that are used to make up an HTML page, no category context is associated with the page.
In this example, the category context collected for the product being viewed is taken from the primary category of the product search result. See the
productsearchbreadcrumbs.isml template in the SiteGenesis Storefront cartridge to see this example.