MapWidth

Version: - string  

Summary

Returns the width of the map.

Settings

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

(Page - Paragraph - Module - Map settings - Map size - Width)

Examples

Outputting the template tag

@GetString("MapWidth")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@MapWidth-->

Check if string has a value

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