[TYPO3-dev] Bidirectional MM relations
Ingmar Schlecht
ingmar at typo3.org
Wed Feb 7 19:10:13 CET 2007
Hi Tomi,
Tomi Hrovatin schrieb:
> Is it possible to store relations from different tables to the same MM
> table like tx_dam does?
> It might be possible with type=db setting since it stores prepend_tname,
> but what about with type=select?
Yep, that's possible since Beta 3.
Here's the TCA settings that you'll need:
MM_match_fields
(not documented yet, but is exactly as used by DAM)
MM_insert_fields
(not documented yet, but is exactly as used by DAM)
MM_table_where
(not documented yet, but is exactly as used by DAM)
MM_opposite_field
If you want to make an mm relation editable from the foreign
side of the relation as well, you need to set MM_opposite_field
on the foreign side to the fieldname on the local side.
E.g. if the field "companies.employees" is your local side
and you want to make the same relation editable from the foreign
side of the relation in a field called persons.employers, you
would need to set the MM_opposite_field value of the TCA
configuration of the persons.employers field to the string
"employees".
cheers
Ingmar
More information about the TYPO3-dev
mailing list