News:Personalize.Image
Version: - stringSummary
Returns the unread news prefix image.
Settings
The value comes from the Unread news prefix field under the paragraph settings.
(Page > Paragraph > Module tab > News list > (Advanced) > Display > Unread news prefix)
Examples
Outputting the template tag
@GetString("News:Personalize.Image")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("News:Personalize.Image"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("News:Personalize.Image");
}
Outputting the template tag
<!--@News:Personalize.Image-->
Check if string has a value
<!--@If Defined(@News:Personalize.Image)-->
Let's output this tag here: <strong><!--@News:Personalize.Image--></strong>
<!--@EndIf(@News:Personalize.Image)-->