News:Text
Version: - stringSummary
Returns the main text of the news item.
Settings
The value is based on the Text field of the news item.
(Modules tab > News > Category > News > Text)
Remarks
The tag is also available in notification emails.
Examples
Outputting the template tag
@GetString("News:Text")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("News:Text"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("News:Text");
}
Outputting the template tag
<!--@News:Text-->
Check if string has a value
<!--@If Defined(@News:Text)-->
Let's output this tag here: <strong><!--@News:Text--></strong>
<!--@EndIf(@News:Text)-->