News:TotalNewsLink
Version: - stringSummary
Returns the news link with edit and delete links (if available for logged in user).
Settings
The value is generated automatically based on the various setting for the news item and paragraph module.
Remarks
The value is returned as a HTML code snippet containing <a> tag, text, images etc.
Examples
Outputting the template tag
@GetString("News:TotalNewsLink")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("News:TotalNewsLink"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("News:TotalNewsLink");
}
Outputting the template tag
<!--@News:TotalNewsLink-->
Check if string has a value
<!--@If Defined(@News:TotalNewsLink)-->
Let's output this tag here: <strong><!--@News:TotalNewsLink--></strong>
<!--@EndIf(@News:TotalNewsLink)-->