ClustererEnabled

Version: - boolean  

Summary

Returns True if the clusterer settings is enabled.

Settings

The value is based on the Enable clusterer checkbox in the paragraph module settings.

(Page - Paragraph - Module - Clusterer settings - Enable clusterer)

Examples

Outputting the template tag

@GetBoolean("ClustererEnabled")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("ClustererEnabled"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("ClustererEnabled"); }

Outputting the template tag

<!--@ClustererEnabled-->

Check if boolean has a value

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