Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[FEATURE] Support re-definition of File Reference types #314

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nhovratov
Copy link
Contributor

@nhovratov nhovratov commented Dec 4, 2024

The table sys_file_reference of TYPO3 is special. It has a type field, which references a value of another table "sys_file". As these values are fixed, it is not possible to extend it with custom types. This means the only possibility is to override the types "showitem" section.

Some adjustments on various places are needed to make this work:

  • Handle typeField "uid_local:type"
  • Do not prepend a typeField
  • Append the hidden palette filePalette
  • Prepend overrides of "type"
  • Do not call fillTypeFieldSelectItems

Fixes: #76

@nhovratov nhovratov marked this pull request as draft December 4, 2024 16:19
@nhovratov nhovratov force-pushed the feature-file-references branch 3 times, most recently from d146927 to ff5b229 Compare December 7, 2024 15:49
@nhovratov nhovratov force-pushed the feature-file-references branch 4 times, most recently from 070aa10 to bbbccef Compare December 15, 2024 17:46
The table sys_file_reference of TYPO3 is special. It has a type field,
which references a value of another table "sys_file". As these values
are fixed, it is not possible to extend it with custom types. This
means the only possibility is to override the types "showitem" section.

Some adjustments on various places are needed to make this work:
- FileType is treated as if it has no typeField
- An exception is made to override the types section
- Append the hidden palette filePalette

Fixes: #76
@nhovratov nhovratov force-pushed the feature-file-references branch from bbbccef to b73acb1 Compare December 15, 2024 17:49
@nhovratov nhovratov marked this pull request as ready for review December 15, 2024 17:52
@nhovratov nhovratov changed the title [WIP][FEATURE] Support re-definition of File Reference types [FEATURE] Support re-definition of File Reference types Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Considerations about further missing TCA types
1 participant