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