Global:Area.Name

Version: - globalvalue  

Summary

Returns the name of the current website.

Settings

The value is based on the Name field for the website.

(Modules > Website > Website tab > Settings > Name)

Examples

Outputting the template tag

@GetGlobalValue("Global:Area.Name")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Global:Area.Name-->

Check if globalvalue has a value

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