Gallery.Image.First.Width
Version: - integerSummary
Returns the original width in pixels of the image listed first on the page.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetInteger("Gallery.Image.First.Width")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Gallery.Image.First.Width"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Gallery.Image.First.Width");
}
Outputting the template tag
<!--@Gallery.Image.First.Width-->
Check if integer has a value
<!--@If Defined(@Gallery.Image.First.Width)-->
Let's output this tag here: <strong><!--@Gallery.Image.First.Width--></strong>
<!--@EndIf(@Gallery.Image.First.Width)-->