Gallery.Picture.MaxHeigth

Version: - integer  

Summary

Returns the maximal height of the detail image.

Settings

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

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

Examples

Outputting the template tag

@GetInteger("Gallery.Picture.MaxHeigth")

Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("Gallery.Picture.MaxHeigth"); }

Outputting the template tag

<!--@Gallery.Picture.MaxHeigth-->

Check if integer has a value

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