Global:Page.NavigationTag

Version: - globalvalue  

Summary

Return the navigation tag for the page.

Settings

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

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

 

Examples

Outputting the template tag

@GetGlobalValue("Global:Page.NavigationTag")

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

<!--@Global:Page.NavigationTag-->

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)-->