Project

General

Profile

Actions

Feature #33045

closed

Enable TCA type field to depend on field of foreign table by syntax relationField:foreignTypeField

Added by Ingmar Schlecht over 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
Start date:
2012-01-08
Due date:
% Done:

100%

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

Description

Sometimes it would be useful to make a TCA type switch not directly based on a value of the current record, but based on a value of another table.

This is e.g. useful for IRRE when used with an intermediate table (making a relation to a third table). Sometimes it's useful to make the fields dependent on the type field of the third table.

Say you have a relation between "houses" and "building objects" and an "intermediate table" for making the relation and storing some properties on how exactly the building objects are used in that particular house. Now, depending on the "building object" that the user makes a relation to, the intermediate table should show different fields.

The patch (as pushed to gerrit) implements this.


Files

Actions

Also available in: Atom PDF