Backend Module
Add this TypoScript as page Ts config or user TS.
Properties
.csv
Enter a list of field names to export to CSV. This way you will not have to select the fields manually each time you export.
Data type
Comma separated list
Version added
1.0.0
Example code
tx_formhandler_mod1.config { csv = firstname, lastname, email, address }
.csv.delimiter
Specifiy the delimiter used for CSV files created in the Backend module.
Data type
String
Default value
,
Version added
1.0.0
.csv.enclosure
Specifiy the enclosure used for CSV files created in the Backend module.
Data type
String
Default value
“
Version added
1.0.0
.csv.encoding
Specifiy the encoding used for CSV files created in the Backend module.
Data type
String
Default value
UTF-8
Version added
1.0.0
.csv.outputFileName
If set, the generator will use this file name for the generated file.
Data type
String | cObj
Default value
formhandler.csv
Version added
2.0.0
Example code
outputFileName = formhandler-export.csv
Enter a list of field names to export to PDF. This way you will not have to select the fields manually each time you export.
You can use these special keywords:
pid - Page ID of the form
ip - IP address of the user (if IP log is not disabled)
submission_date - Date and time of the form submission
Data type
Comma separated list
Version added
1.0.0
Example code
tx_formhandler_mod1.config { pdf = firstname, lastname, email, address }
.pdf.outputFileName
If set, the generator will use this file name for the generated file.
Data type
String | cObj
Default value
formhandler.pdf
Version added
2.0.0
Example code
outputFileName = formhandler-export.pdf
.additionalIncludePaths
The component manager will search for classes in paths entered here.
Equals the additionalIncludePaths setting for the frontend output.
Data type
Array
Version added
1.1.0
Example code
tx_formhandler_mod1.config { additionalIncludePaths { 1 = fileadmin/templates/scripts } }
.generators.csv
Add your own CSV generator class for the backend module.
Data type
String
Default value
Tx_Formhandler_Generator_CSV
Version added
1.1.0
Important
Make sure you set the additionalIncludePaths to make sure the component manager finds your custom class.
Example code
tx_formhandler_mod1.config { generators { csv = Tx_Formhandler_Generator_MyGenerator } }
.generators.pdf
Add your own PDF generator class for the backend module.
Data type
String
Default value
Tx_Formhandler_Generator_TCPDF
Version added
1.1.0
Important
Make sure you set the additionalIncludePaths to make sure the component manager finds your custom class.
Example code
tx_formhandler_mod1.config { generators { pdf = Tx_Formhandler_Generator_MyGenerator } }