News:Href

Version: - string  

Summary

Returns the URL to the related news item.

Settings

The value is generated automatically.

Remarks

The value should be assigned to the <a> href attribute.

Examples

Outputting the template tag

@GetString("News:Href")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@News:Href-->

Check if string has a value

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