[TYPO3-dev] Bidirectional MM relations
Tomi Hrovatin
tomi at tri-ex.si
Tue Feb 13 15:39:43 CET 2007
one more question ...
What about bidirectional MM on same table?
example: tt_news and field related news?
If I set tt_news_1 as related news to tt_news_2, i'd like to see that
tt_news_2 is related to tt_news_1 when editing in BE.
There are 2 ways I see:
- by setting some parameter in TCA that instructs loaddbgroup to make
two queries (one for local and one for foreign relations) and then
combines the arrays.
- by setting some parameter in TCA that instructs TCAmain (is it?) to
insert 2 records in MM table (one for local and one for foreign relation).
I looked in loaddbgroup source but could not find out if that is
possible. Any hints?
thnx,
--
Tomi Hrovatin
-----------------------
Tri-ex d.o.o.
www.tri-ex.si
www.iPlantCare.com
www.flowerServant.com
www.indoor-plant-care.com
-----------------------
Ingmar Schlecht wrote:
> Tomi Hrovatin schrieb:
>> 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?
>
> MM_oposite_field is already used in the
> http://typo3.org/fileadmin/dl/T3X_mmftest-0_0_0-z-200611301306.t3x
> extension.
>
> The other ones are used by DAM, so you could see how the should be
> configured there. I'll write a doc some time after 4.1 is released.
>
> cheers
> Ingmar
>
More information about the TYPO3-dev
mailing list