FilepublishUploadText

Version: - string  

Summary

Returns the body text of the notification mail.

Settings

The value is based on the Text textfield in the Upload section for the paragraph module.

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

Remarks

An input field with the name Text must be defined in the form if the mail should have a body text.

Examples

Outputting the template tag

@GetString("FilepublishUploadText")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@FilepublishUploadText-->

Check if string has a value

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