Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for custom File Reference fields #313

Open
nhovratov opened this issue Dec 4, 2024 · 0 comments
Open

Support for custom File Reference fields #313

nhovratov opened this issue Dec 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nhovratov
Copy link
Contributor

Is your feature request related to a problem? Please describe.
With Content Blocks it is easy to add new Content Types. But for the special table "sys_file_reference", whose type is based on the selected file type, it is not possible in a clean way.

Describe the solution you'd like
It should be possible to a) Override a FileType globally with custom fields / remove fields etc and b) override a FileType locally with overrideChildTca method. How exactly this might look is up to debate.

Describe alternatives you've considered
Alternative right now is to define fields in TCA and reference them in Content Blocks or wrap the File Field around another Collection.

Additional context
The File field is one of the most used types by integrators. Oftentimes the problem arises that they want either to remove some fields like description or link or they want to add custom fields between them.

@nhovratov nhovratov added the enhancement New feature or request label Dec 4, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant