ItemPublisher:Global.PageId

Version: - getstring  

Summary

Returns the ID of the current page in the product list.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetGetString("ItemPublisher:Global.PageId")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetGetString("ItemPublisher:Global.PageId"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetGetString("ItemPublisher:Global.PageId"); }

Outputting the template tag

<!--@ItemPublisher:Global.PageId-->

Check if getstring has a value

<!--@If Defined(@ItemPublisher:Global.PageId)--> Let's output this tag here: <strong><!--@ItemPublisher:Global.PageId--></strong> <!--@EndIf(@ItemPublisher:Global.PageId)-->