Global:Page.Top.Name

Version: - globalvalue  

Summary

Returns the name 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.Name")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if globalvalue has a value

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