Project

General

Profile

Actions

Feature #76671

closed

Story #69712: Further FormEngine development

columnsOverrides does not affect newly added inline elements

Added by Morten Haggren almost 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Won't have this time
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2016-06-17
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.5
Tags:
Complexity:
hard
Sprint Focus:

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.


Related issues 5 (0 open5 closed)

Related to TYPO3 Core - Bug #73751: columnsOverrides don't work with IRRE ElementsRejected2016-02-29

Actions
Related to TYPO3 Core - Bug #71729: foreign_record_defaults stopped working inside columnsOverridesRejected2015-11-20

Actions
Related to TYPO3 Core - Bug #69183: Respect TCA option 'columnsOverrides' for server side field evaluationsClosed2015-08-19

Actions
Has duplicate TYPO3 Core - Bug #79057: TCA IRRE columnsOverrides "foreign_record_defaults" not applied on new elementClosed2016-12-21

Actions
Has duplicate TYPO3 Core - Bug #79619: columnsOverride collapsed in sys_file_reference not workingClosed2017-02-03

Actions
Actions #1

Updated by Christian Kuhn almost 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".

Actions #2

Updated by Gerrit Code Review about 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

Actions #3

Updated by Gerrit Code Review about 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

Actions #4

Updated by Gerrit Code Review about 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

Actions #5

Updated by Christian Kuhn about 7 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF