Gallery.Picture.MaxWidth

Version: - integer  

Summary

Returns the maximal width of the detail image.

Settings

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

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

Examples

Outputting the template tag

@GetInteger("Gallery.Picture.MaxWidth")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if integer has a value

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