Configuration
Attention
First load the typoscript of this extension in your static template.
This extension provides also an example configuration.
Override configuration
The YAML configuration of this extension is registered via the form
framework's auto-discovery convention (Configuration/,
available since TYPO3 v14.2). Two configuration sets are provided:
lia/(priority 100) — base setup (lia- form- setup Lia)Form Setup. yaml lia/(priority 199) — form elements and finisherslia- form- elements
To override the default yaml configuration create your own configuration set in your extension. Use a priority between 101 and 198 so it loads after the base setup and before the element definitions.
name: my-vendor/my-extension-forms
priority: 150
imports:
- { resource: 'EXT:my_extension/Configuration/Yaml/CustomFormSetup.yaml' }
No TypoScript registration is required — the set is discovered automatically in frontend and backend.
Note
The former TypoScript-based registration via
plugin. /
module. is deprecated since
TYPO3 v14.2 and will be removed in v15. Existing TypoScript registrations
still work during the deprecation period: legacy paths are loaded after
all auto-discovered sets.
Yaml Configuration
If you do not have a Custom then create it in the path of the settings and past the following snippet.
Here you have to adjust the path to your extension.
TYPO3:
CMS:
Form:
persistenceManager:
allowSaveToExtensionPaths: true
allowedFileMounts:
100: 1:/forms/
allowedExtensionPaths:
10: EXT:my_extension/Resource/Private/Extensions/LiaForm/
prototypes:
standard:
formEditor:
formEditorFluidConfiguration:
partialRootPaths:
20: "EXT:lia_form/Resources/Private/Backend/Partials/FormEditor/"
30: "EXT:my_extension/Resources/Private/Extensions/LiaForm/Backend/Partials/FormEditor/"
formElementsDefinition:
Form:
renderingOptions:
templateRootPaths:
100: "EXT:lia_form/Resources/Private/Frontend/Templates/"
200: "EXT:my_extension/Resources/Private/Extensions/LiaForm/Frontend/Templates/"
partialRootPaths:
100: "EXT:lia_form/Resources/Private/Frontend/Partials/"
200: "EXT:my_extension/Resources/Private/Extensions/LiaForm/Frontend/Partials/"
translation:
translationFiles:
# translation files for the frontend
10: "EXT:form/Resources/Private/Language/locallang.xlf"
20: "EXT:lia_form/Resources/Private/Language/locallang_forms.xlf"
30: "EXT:my_extension/Resources/Private/Extensions/LiaForm/Language/locallang_forms.xlf"
GridRow:
properties:
elementClassAttribute: "container"
gridColumnClassAutoConfiguration:
gridSize: 24
viewPorts:
sd:
classPattern: "grid__col-sd-{@numbersOfColumnsToUse}"
md:
classPattern: "grid__col-md-{@numbersOfColumnsToUse}"
xs:
classPattern: "grid__col-xs-{@numbersOfColumnsToUse}"
sm:
classPattern: "grid__col-sm-{@numbersOfColumnsToUse}"
lg:
classPattern: "grid__col-lg-{@numbersOfColumnsToUse}"
### FORM ELEMENTS: UPLOADS ###
FileUpload:
formEditor:
editors:
300:
selectOptions:
80:
value: "application/zip"
label: "Documents (zip)"
90:
value: "application/rar"
label: "Documents (rar)"
400:
selectOptions:
30:
value: "typo3temp/myFormUploadDestination/"
label: "typo3temp/myFormUploadDestination/"
30:
value: "typo3temp/myFormUploadDestination2/"
label: "typo3temp/myFormUploadDestination2/"