DwAreaName

Version: - string  

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

@GetString("DwAreaName")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("DwAreaName"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("DwAreaName"); }

Outputting the template tag

<!--@DwAreaName-->

Check if string has a value

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