News:Approve.Href
Version: - stringSummary
Returns the approve link that can be used in the aprove email.
Settings
The value is generated automatically.
Remarks
Requires that the Approve option has been selected under the paragraph settings.
(Page > Paragraph > Module tab > Frontend editing > Workflow - Approve)
Examples
Outputting the template tag
@GetString("News:Approve.Href")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("News:Approve.Href"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("News:Approve.Href");
}
Outputting the template tag
<!--@News:Approve.Href-->
Check if string has a value
<!--@If Defined(@News:Approve.Href)-->
Let's output this tag here: <strong><!--@News:Approve.Href--></strong>
<!--@EndIf(@News:Approve.Href)-->