Form_tools is an extension for TYPO3 CMS. It collects some tools for the TYPO3 FormFramework.
- It contains a form finisher to store all form fields as XML structure in DB
- It contains a form element to set up a GDPR link in your form (works with the form editor)
The recommended way to install the extension is using Composer.
Run the following command within your Composer based TYPO3 project:
composer require jweiland/form-tools
Download and install form_tools with the extension manager module.
- Check if DB table
tx_formtools_requestswas created successfully - Open your TypoScript file or record
- Add:
plugin.tx_form.settings.yamlConfigurations.1234 = EXT:form_tools/Configuration/Form/StoreAsXml.yaml - Now you can use our finisher with identifier:
StoreFieldsAsXmlToDb - Add:
plugin.tx_form.settings.yamlConfigurations.2345 = EXT:form_tools/Configuration/Form/Checkboxlink.yaml - Add:
module.tx_form.settings.yamlConfigurations.2345 = EXT:form_tools/Configuration/Form/Checkboxlink.yaml - Add:
to your SETUP and define a target for the "Data protection notice" link.
lib.formLegalUid = TEXT lib.formLegalUid.value = 1 # or e.g.: {$form.legalUid} - Now you can use the form element with type:
Checkboxlink
Copy the finisher to your form YAML file.
-
options:
-
table: tx_formtools_requests
mode: insert
elements:
text-1:
mapOnDatabaseColumn: first_name
name:
mapOnDatabaseColumn: last_name
telefon:
mapOnDatabaseColumn: telephone
strasse:
mapOnDatabaseColumn: address
plzort:
mapOnDatabaseColumn: city
email:
mapOnDatabaseColumn: email
textarea-2:
mapOnDatabaseColumn: message
databaseColumnMappings:
pid:
value: 12107
tstamp:
value: '{__currentTimestamp}'
crdate:
value: '{__currentTimestamp}'
identifier: StoreFieldsAsXmlToDb
- Some fields like
first_nametillmessagealready exist in the Datatbase. You can map your renderables to them. - Set the pid where your mails should be saved (e.g. the same where your plugin resides).
- The database field
xmlwill automaticaly contain all posted data.
Free Support is available via GitHub Issue Tracker.
For commercial support, please contact us at support@jweiland.net.