Gallery.Thumb.MaxHeight

Version: - integer  

Summary

Returns the maximal height of the thumbnails.

Settings

The value is based on the Max height (px) input field in the Thumbnails section for the paragraph module.

(Page > Paragraph > Module tab > Thumbnails section > Max height (px)).

Examples

Outputting the template tag

@GetInteger("Gallery.Thumb.MaxHeight")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Gallery.Thumb.MaxHeight"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Gallery.Thumb.MaxHeight"); }

Outputting the template tag

<!--@Gallery.Thumb.MaxHeight-->

Check if integer has a value

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