Issue Feature Closed

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

Ingmar Schlecht 01/08/12, 14:45 updated 10/23/17, 22:20

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.

Reviews 1