Gallery.Thumb.MaxWidth

Version: - integer  

Summary

Returns the maximal width of the thumbnails.

Settings

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

(Page > Paragraph > Module tab > Thumbails section  > Max width (px)).

Examples

Outputting the template tag

@GetInteger("Gallery.Thumb.MaxWidth")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if integer has a value

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