News:TotalNewsLinkClean

Version: - string  

Summary

Returns the news link without the edit and delete links - only the read more link.

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:TotalNewsLinkClean")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@News:TotalNewsLinkClean-->

Check if string has a value

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