News:LinkPopup
Version: -Summary
Returns a target attribute for the news item URL.
Settings
The value is based on the Open in new window field for the news item.
(Modules tab > News > Category > News > Settings panel)
Remarks
The value should be assigned to the <a> target attribute.
Examples
Outputting the template tag
@GetObject("News:LinkPopup")
Check if tag has a value
@if(!var.IsNullOrWhiteSpace(GetObject("News:LinkPopup"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
var storedTag = GetObject("News:LinkPopup");
}
Outputting the template tag
<!--@News:LinkPopup-->
Check if object has a value
<!--@If Defined(@News:LinkPopup)-->
Let's output this tag here: <strong><!--@News:LinkPopup--></strong>
<!--@EndIf(@News:LinkPopup)-->