Project

General

Profile

Actions

Bug #67611

closed

Parent type in TCA work only after record saving

Added by Eric Chavaillaz almost 9 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2015-06-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Hi,

I have a created a custom element who have a field defined as inline (IRRE).
This child element is used in several custom content elements. So to have different palette depending on the CType I have addes "'type' => 'tt_content:CType'" in my TCA.

It work fine when the IRRE exists really in the database (is not new) but if I create a new content element, the palettes with the index 0 is shown.

Thanks,
Eric


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #72619: Add a possibility to provide custom context information to inline elementsClosed2016-01-10

Actions
Actions #1

Updated by Susanne Moog over 8 years ago

  • Target version changed from 7.4 (Backend) to 7.5
Actions #2

Updated by Benni Mack over 8 years ago

  • Target version changed from 7.5 to 7 LTS
Actions #3

Updated by Christian Kuhn over 8 years ago

The TCA of the child table points in its ctrl['type'] back to parent with 'tt_content:CType' ?

This can not work if "parent" is new and was not yet persisted and I see no chance to implement that in the near future.

Actions #4

Updated by Christian Kuhn over 8 years ago

The only way to achieve that is to have per CType that connects to the child one field which then holds the inline configuration to child and use the "foreign_types" inline option to override the child type array as needed. This will work, however, do not try to have different CTypes connected over the same field to child and have different "foreign_types" in a columnsOverrides, since this would lead to the same "it does not work if parent is new" issue. So, stick to one field per connection type.

Actions #5

Updated by Christian Kuhn over 8 years ago

  • Status changed from New to Closed
Actions #6

Updated by Hannes Lau about 8 years ago

To my eyes, this issue has not yet been resolved. So I wonder whether we could keep this issue open.

One solution would be, to add the type information of the parent record to the JSON stack.

Actions

Also available in: Atom PDF