-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP][FEATURE] Support re-definition of File Reference types
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 todo: Think about a clever syntax for local overrides with overrideChildTca. Fixes: #76
- Loading branch information
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: nikita/my-file-reference | ||
table: sys_file_reference | ||
typeName: 2 | ||
fields: | ||
- identifier: basic | ||
type: Palette | ||
label: LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:sys_file_reference.imageoverlayPalette | ||
fields: | ||
- identifier: alternative | ||
useExistingField: true | ||
- identifier: description | ||
useExistingField: true | ||
- type: Linebreak | ||
- identifier: link | ||
useExistingField: true | ||
- identifier: title | ||
useExistingField: true | ||
- type: Linebreak | ||
- identifier: custom_field | ||
type: Text | ||
label: My custom Field | ||
- type: Linebreak | ||
- identifier: crop | ||
useExistingField: true |