FilepublishUploadNotify
Version: - stringSummary
Returns "1" if a notification mail should be sent otherwise "0".
Settings
The value is based on the Notify checkbox in the Upload section for the paragraph module.
(Page > Paragraph > Module tab > Upload panel > Notify)
Remarks
An input field with the name Notify must be defined in the form and the value must be either "0" og "1".
Examples
Outputting the template tag
@GetString("FilepublishUploadNotify")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("FilepublishUploadNotify"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("FilepublishUploadNotify");
}
Outputting the template tag
<!--@FilepublishUploadNotify-->
Check if string has a value
<!--@If Defined(@FilepublishUploadNotify)-->
Let's output this tag here: <strong><!--@FilepublishUploadNotify--></strong>
<!--@EndIf(@FilepublishUploadNotify)-->