News:NoNewsMessage
Version: - stringSummary
Returns the custom "no news" message if no news items are found.
Settings
The value comes from the No news message field.
(Page > Paragraph > Module tab > News list > Display > No news message)
Examples
Outputting the template tag
@GetString("News:NoNewsMessage")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("News:NoNewsMessage"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("News:NoNewsMessage");
}
Outputting the template tag
<!--@News:NoNewsMessage-->
Check if string has a value
<!--@If Defined(@News:NoNewsMessage)-->
Let's output this tag here: <strong><!--@News:NoNewsMessage--></strong>
<!--@EndIf(@News:NoNewsMessage)-->