Configuration

All configuration is done via TypoScript, besides the Label “Download”. It can be found in Resources/Private/Language/locallang.xml

TypoScript Reference

Possible subsections: Reference of TypoScript options.

Property: Data type: Description:
settings.filelink filelink

Defines the filelink which will be rendered in the thx view

jumpurl = 1
jumpurl.secure = 1
jumpurl.secure.mimeTypes = pdf=application/pdf
icon = 1
icon\_link = 1
settings.fillPdf boolean Fills the pdf form with powermail field values. If set to 0 otherwise the pdf is not filled but still can be downloaded or attached.
settings.fieldMap array

Maps the powermail form fields with the pdf field.

fieldMap{
   #pdfField = PowermailField
   #firstname = namefirmaverein
   #lastname = e_mail
   name = vorname
   address = nachname
   city = email
   phone = email
}
settings.enablePowermailPdf boolean Activates/Deactivates the extension
settings.showDownloadLink boolean Should the link be shown on the submit page?
settings.email.attachFile boolean Attach the pdf to the mail? Remember there are a receiver and an sender mail, if you want to attach the pdf to one/both of this mails you also need to activate plugin.tx_powermail.settings.sender.attachment and/or plugin.tx_powermail.settings.receiver.attachment
settings.sourceFile string Path of the pdf file

Example

This is an example configuration.
 plugin.tx_powermailpdf {
    settings {
       filelink {
          jumpurl = 1
          jumpurl.secure = 1
          jumpurl.secure.mimeTypes = pdf=application/pdf
          icon = 1
          icon_link = 1
       }
       sourceFile = fileadmin/form.pdf
       fieldMap{
          #pdfField = PowermailField
          firstname = name
          lastname = lastname
          email = email
       }
    showDownloadLink = {$plugin.tx_powermailpdf.settings.showDownloadLink}
    email{
       attachFile = {$plugin.tx_powermailpdf.settings.email.attachFile}
    }
  }
}