Relation type free to choose
When I create a relation, always the TCA definition for an inline relation is generated. Would be really cool to have this configurable - inline or select. The only change in the generated code would be the 'type' => 'inline'/'select'.
#1 Updated by Steffen Müller almost 7 years ago
1) In general, the Extension Builder UI aims to keep it simple and focus on DDD. I guess that's why there's not yet another TCA option. The user should work on the model, not the technical details.
(Yes, there are a lot of exceptions :)
The Package Builder will change this with a more flexible and extendable UI.
2) AFAIK the TCA type depends on the type of relation (1:1, 1:n, n:1, n:m). See: http://wiki.typo3.org/T3Doc/Extension_Builder/Using_the_Extension_Builder#3._Add_relations
Some combinations do not make sense, e.g. inline only support 1:x relations in TYPO3 core.
Validating and hinting about senseless combinations in the actual UI just makes it too complicated.
#3 Updated by Nico de Haen almost 6 years ago
- Status changed from Accepted to Needs Feedback
- Target version changed from 6.0 to 6.2
I'm just cleaning up issues: what kind of 1:n relation would that be? If 1:n is not implemented as inline it has to be a multi select but that is only supported in TCA with an mm relation table. TCA can (unfortunately) not handle 1:n relation only with foreign key, since this would mean, the right field (with the selectable children) in the multi select has to be filtered by the foreign key field.
Or do you have a configuration for that?