MarkerImage

Version: - string  

Summary

Returns the path to the image that is selected as marker.

Settings

The value is based on the Marker Image field in the paragraph module settings.

(Page - Paragraph - Module - Marker settings - Marker image​)

Examples

Outputting the template tag

@GetString("MarkerImage")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@MarkerImage-->

Check if string has a value

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