[TYPO3-dev] Bidirectional MM relations

Tomi Hrovatin tomi at tri-ex.si
Wed Feb 7 22:43:26 CET 2007


Hi and thanx again,

well, I saw that doc. I also looked in DAM but couldn't get it to work 
:(. I just can't dig what all these settings mean. DAM is also using 
settings for mmforeign extension. Yesterday I tested DAM without 
mmforeign and it works without the problem.

Can you explain on example from MM_oposite_field description or maybe 
have another working example?

I hope I don't ask too much.

T.

Ingmar Schlecht wrote:
> 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