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