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