Example configuration
In the root of this extension you find an __ folder. This folder contains all the nessesary configuration
for this extension and a little bit more.
You can copy the example configuration into your sitepackage-extension and adjust some paths and values in it to get it up and running.
YAML configuration
In the EXT: you find the form configuration files.
CustomFormSetup.yaml
This file override and extends the default form configuration. It extends the root path configuration of the form.
After you copied this file into your sitepackage-extension you have to adjust the extension name in the paths.
All the paths contains the placeholder my_.
Form prototypes
In this file is also a register of three prototype form configurations. Yo use the provided prototypes copy them in the same directory where you pasted the CustomFormSetup.yaml in.
If you do not need them you can delete this part of code out this file.
formManager:
selectablePrototypesConfiguration:
100:
newFormTemplates:
300:
templatePath: "EXT:lia_form/Resources/Private/Backend/Templates/FormEditor/Yaml/NewForms/DefaultContactForm.yaml"
label: "LIA Default contact form"
301:
templatePath: "EXT:my_extension/Configuration/Yaml/ContactFormWithFileUPloadPrototype.yaml"
label: "LIA Contact form with file upload"
302:
templatePath: "EXT:my_extension/Configuration/Yaml/ContactFormWithImageUploadPrototype.yaml"
label: "LIA Contact form with image upload"
Elements.yaml
This file extends all the form elements with a small grid configuration.
TypoScript configuration
In the EXT: folder you find an example configuration.
The subfolder Extensions contains the typoscript to override the default lia_ configuration. You can copy
this configuration into your sitepackage-extension and load it.
Constants.typoscript
In this file are the constants to set the template root paths of the form extension.
Setup.typoscript
This setup loads the default form framework TypoScript. The form YAML
configurations themselves are registered via auto-discovery — see
EXT:
for the project-specific configuration set (priority 150).
Resources
In the folder EXT: you find all the template, partials and translations which are used by this example configuration.
You can copy them into sitepackage-extension and modify them. If the Folder Structure does not match the folder structure
of your sitepackage-extension, you have to adjust the paths in the configurations.