ParagraphImageClean
Version: - stringSummary
Returns the path for 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 should be assigned to an <img>
src attribute.
Examples
Outputting the template tag
@GetString("ParagraphImageClean")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("ParagraphImageClean"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("ParagraphImageClean");
}
Outputting the template tag
<!--@ParagraphImageClean-->
Check if string has a value
<!--@If Defined(@ParagraphImageClean)-->
Let's output this tag here: <strong><!--@ParagraphImageClean--></strong>
<!--@EndIf(@ParagraphImageClean)-->