Global:Page.Top.ID

Version: - globalvalue  

Summary

Returns the ID of the top page in the current path.

Settings

The value is generated automatically based on the sorting of pages in the current path.

Examples

Outputting the template tag

@GetGlobalValue("Global:Page.Top.ID")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:Page.Top.ID"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetGlobalValue("Global:Page.Top.ID"); }

Outputting the template tag

<!--@Global:Page.Top.ID-->

Check if globalvalue has a value

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