Feature #76671
closedStory #69712: Further FormEngine development
columnsOverrides does not affect newly added inline elements
100%
Description
In 7.6 I'm using the "columnsOverrides" feature to remove the link and description fields from tt_content's image field for certain ctypes, like so;
$GLOBALS['TCA']['tt_content']['ctrl']['types']['bootstrap_package_post']['columnsOverrides']['image']['config']['foreign_types'][\TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE]['showitem']='title,alternative,crop,--palette--;;filePalette';
This works perfectly when I go to edit an element with an image already attached.
But when I add a new image (before saving) the link and description fields are shown until I save.
Updated by Christian Kuhn over 8 years ago
- Tracker changed from Bug to Feature
- Priority changed from Should have to Won't have this time
- Parent task set to #69712
- Complexity set to hard
Yes, that's correct.
It is currently impossible to overwrite the TCA of inline children via "foreign_types" (and some other TCA settings that affect the TCA of inline children) depending on the type of the parent: Using those settings within columnsOverrides will have no effect. Background is that the parent type is not always known when i child is created, for instance if the parent is "new" and not yet persisted. This restriction can not be solved easily.
Since the columnsOverrides construct is new in 7.6 and provides more than it has been possible with 6.2, this report is rather a feature request that a bug or regression.
I'll keep it open but assign it to the parent issue "further formengine development".
Updated by Gerrit Code Review over 7 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52077
Updated by Gerrit Code Review over 7 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52077
Updated by Gerrit Code Review over 7 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/52077
Updated by Christian Kuhn over 7 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 72f6ad287b69a323a485899af414eb1e88ad9885.