MapType

Version: - string  

Summary

Returns the map type.

Settings

The value is based on the Map type field in the paragraph module settings.

(Page - Paragraph - Module - Location list settings - Map type)

Remarks

Examples

Outputting the template tag

@GetString("MapType")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@MapType-->

Check if string has a value

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