News:RelatedNewsGroupName

Version: - string  

Summary

Returns the heading for the related news list.

Settings

The value comes from the Related news heading input field in the paragraph module settings.

(Page > Paragraph > Module tab > (Advanced) > Display panel - Related news heading).

Examples

Outputting the template tag

@GetString("News:RelatedNewsGroupName")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("News:RelatedNewsGroupName"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("News:RelatedNewsGroupName"); }

Outputting the template tag

<!--@News:RelatedNewsGroupName-->

Check if string has a value

<!--@If Defined(@News:RelatedNewsGroupName)--> Let's output this tag here: <strong><!--@News:RelatedNewsGroupName--></strong> <!--@EndIf(@News:RelatedNewsGroupName)-->