MapElementID

Version: - string  

Summary

Returns the ID of the maps element.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("MapElementID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@MapElementID-->

Check if string has a value

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