PageID

Version: - integer  

Summary

Returns PageID of the page within the language.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetInteger("PageID")

Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("PageID"); }

Outputting the template tag

<!--@PageID-->

Check if integer has a value

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