Bug #79619
closedcolumnsOverride collapsed in sys_file_reference not working
0%
Description
When using columnsOverride in the TCA for the field sys_file_reference my field or palette is not displaying when opening a content element containing an sys_file_reference which is collapsed.
When opening the content element where the image is 'open' the fields are displaying correct.
Reproduce by:
- Add tca for columnsoverride:
$GLOBALS['TCA']['tt_content']['types']['pizza']['columnsOverrides'] = [ 'image' => [ 'config' => [ // custom configuration for displaying fields in the overlay/reference table // to use the newsPalette and imageoverlayPalette instead of the basicoverlayPalette 'foreign_types' => [ '0' => [ 'showitem' => ' --palette--;;myPizzaPalette, --palette--;;imageoverlayPalette, --palette--;;filePalette' ], //other foreign_types ] ] ] ];
- Create a new content element and add sys_file_reference
- Collapse the reference
- Close the element
- Open the element
- Open the reference
- myPizzaPalette is invisible
- When you reload the frame, the fields of myPizzaPalette is visible again
Updated by Christian Kuhn almost 8 years ago
Yes, you can not override child tca from parent tca's columnsOverrides. This will hardly change soon.
Updated by Christian Kuhn almost 8 years ago
- Status changed from New to Closed
closing as dupe of #76671
Updated by Tymoteusz Motylewski over 7 years ago
seems the documentation is wrong then
https://docs.typo3.org/typo3cms/TCAReference/8-dev/ColumnsConfig/Type/Inline.html#overridechildtca
It is allowed to use this property within the columnsOverrides property of an inline parent in the ['types'] section.