FilepublishUploadRecipient

Version: - string  

Summary

Returns the e-mail address of the notification mail recipient.

Settings

The value is based on the Recipient input field in the Upload section for the paragraph module.

(Page > Paragraph > Module tab > Upload panel > Recipient)

Remarks

An input field with the name Recipient must be defined in the form if the mail should be sent to the recipient.

Examples

Outputting the template tag

@GetString("FilepublishUploadRecipient")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("FilepublishUploadRecipient"); }

Outputting the template tag

<!--@FilepublishUploadRecipient-->

Check if string has a value

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