PageID

Version: - string  

Summary

Return ID of the page.

Settings

The value is generated automatically.

Remarks

Available for ContentAppIndexProviders only

Examples

Outputting the template tag

@GetString("PageID")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("PageID"); }

Outputting the template tag

<!--@PageID-->

Check if string has a value

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