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")
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if integer has a value

<!--@If Defined(@Gallery.Thumb.MaxHeight)-->
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX