Version: - globalvalue  


Return the navigation tag for the page.


The value is based on the Navigation tag field in the navigation settings in page properties.

(Page - Page properties - Options - Navigation - Navigation tag)



Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag


Check if globalvalue has a value

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