News:Heading

Version: - string  

Summary

Returns the heading of the related news.

Settings

The value is based on the Heading field for the related news item.

(Modules tab > News > Category > News items > Settings - Heading)

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)-->