ParagraphImage
Version: - stringSummary
Returns the vignette image for the current paragraph.
Settings
The value is based on the selection in the Image field for the paragraph.
(Page > Paragraph > Content tab)
Remarks
The value is returned as a HTML code snippet containing an img
tag etc. within div
tags.
Examples
Outputting the template tag
@GetString("ParagraphImage")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("ParagraphImage"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("ParagraphImage");
}
Outputting the template tag
<!--@ParagraphImage-->
Check if string has a value
<!--@If Defined(@ParagraphImage)-->
Let's output this tag here: <strong><!--@ParagraphImage--></strong>
<!--@EndIf(@ParagraphImage)-->