Skip to content

Instantly share code, notes, and snippets.

@christophlehmann
Created December 19, 2024 20:28
Show Gist options
  • Save christophlehmann/4457901ba8edc43ea9152ca37d466c34 to your computer and use it in GitHub Desktop.
Save christophlehmann/4457901ba8edc43ea9152ca37d466c34 to your computer and use it in GitHub Desktop.
Dynamic storage folder with TYPO3 SaveToDatabase Finisher
prototypes:
standard:
formElementsDefinition:
Form:
formEditor:
propertyCollections:
finishers:
# SaveToDatabase
80:
editors:
# Define new property and see it in the
1733437328:
identifier: pid
templateName: Inspector-TextEditor
label: 'Storage Folder (Page id)'
propertyPath: options.databaseColumnMappings.pid.value
# Show new option in Form Plugin (when overwrite finisher configuration enabled)
finishersDefinition:
SaveToDatabase:
FormEngine:
label: 'Storage Folder'
elements:
databaseColumnMappings:
pid:
value:
label: 'Storage Folder (Page id)'
config:
type: group
allowed: pages
size: 1
maxitems: 1
fieldWizard:
recordsOverview:
disabled: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment