Ecom:Search.Page.ID
Version: - integerSummary
Returns the ID for the page that is selected as product detail page (default is current).
Settings
The value is generated automatically.
Remarks
If a paragraph is selected in Show on paragraph in module settings for the product catalog then it's the selected page ID that is rendered.
Examples
Outputting the template tag
@GetInteger("Ecom:Search.Page.ID")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:Search.Page.ID"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Ecom:Search.Page.ID");
}
Outputting the template tag
<!--@Ecom:Search.Page.ID-->
Check if integer has a value
<!--@If Defined(@Ecom:Search.Page.ID)-->
Let's output this tag here: <strong><!--@Ecom:Search.Page.ID--></strong>
<!--@EndIf(@Ecom:Search.Page.ID)-->