Global:Area.Primarydomain

Version: - globalvalue  

Summary

Returns the primary domain for the current website.

Settings

The value is based on the Regional settings field for the website.

(Modules > Website > Website tab > Details > Primary domain)

Examples

Outputting the template tag

@GetGlobalValue("Global:Area.Primarydomain")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if globalvalue has a value

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