fritzmg/contao-store-uuid

Mini extension which integrates a storeFormData and a updatePersonalData hook to automatically convert uploaded file paths to UUIDs.

Fund package maintenance!
fritzmg

Installs: 1 002

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 3

Type:contao-module

1.1.0 2020-09-03 14:47 UTC

This package is auto-updated.

Last update: 2024-12-08 19:21:15 UTC


README

Contao Store UUID

Mini extension which integrates a storeFormData and a updatePersonalData hook to automatically convert uploaded file paths to UUIDs.

storeFormData

The extension checks if there is a DCA available for the target table and then checks if the field is a single fileTree input and converts the file path to an UUID before saving it to the database.

updatePersonalData

The extension checks if there is a DCA available for an uploaded file and then checks if the field is an upload field (fileTree backend widget is mapped to upload field by the personal data module) and then stores the uuid if the file is stored in the file system.

For DCA fields marked as multiple a single file is saved and the correspondig order field is also updated (if defined).