DwAreaID

Version: - integer  

Summary

Returns the ID of the current Area/Language layer.

Settings

The value is generated automatically based on the current page's language layer.

Remarks

Area ID's can be seen in language list.
(Modules > Language).

Examples

Outputting the template tag

@GetInteger("DwAreaID")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("DwAreaID"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("DwAreaID"); }

Outputting the template tag

<!--@DwAreaID-->

Check if integer has a value

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