Global:Area.ID

globalvalue  

Summary

Returns the ID of the current area.

Settings

The value is based on the ID of the website.

(Modules - Websites)

Examples

Outputting the template tag

@GetGlobalValue("Global:Area.ID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if globalvalue has a value

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