News:SmallImageClean
Version: - stringSummary
Returns the path for the overview image for the news item.
Settings
The value comes from the Overview image field for the news item.
(Modules tab > News > Category > News > Layout > Overview image)
Remarks
The value should be assigned to the <img> src attribute.
Examples
Outputting the template tag
@GetString("News:SmallImageClean")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("News:SmallImageClean"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("News:SmallImageClean");
}
Outputting the template tag
<!--@News:SmallImageClean-->
Check if string has a value
<!--@If Defined(@News:SmallImageClean)-->
Let's output this tag here: <strong><!--@News:SmallImageClean--></strong>
<!--@EndIf(@News:SmallImageClean)-->