Story #69712: Further FormEngine development
columnsOverrides does not affect newly added inline elements
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;
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 4 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".