News:Manchet

Version: - string  

Summary

Returns the teaser text for the news item.

Settings

The value is based on the Teaser text field for the news item.

(Modules tab > News > Category > News > Settings > Teaser text)

Remarks

Only rendered when Show teaser text is enabled in paragraph module settings.

The tag is also available in notification emails.

Examples

Outputting the template tag

@GetString("News:Manchet")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@News:Manchet-->

Check if string has a value

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