News:Initials

Version: - string  

Summary

Returns the initials of the author of the current news item.

Settings

The value is based on the Initials field for the news item.

(Modules tab > News > Category > News > Content > Author - Initials)

Remarks

The tag is also available in notification emails.

Examples

Outputting the template tag

@GetString("News:Initials")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@News:Initials-->

Check if string has a value

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