ItemPublisher:Item.Field.PageId

Version: - integer  

Summary

Returns the ID of the page where the item type with the item field is created.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("ItemPublisher:Item.Field.PageId")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("ItemPublisher:Item.Field.PageId"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("ItemPublisher:Item.Field.PageId"); }

Outputting the template tag

<!--@ItemPublisher:Item.Field.PageId-->

Check if integer has a value

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