[TYPO3-mvc] Tips on how to get inverted MM relations
Stephen Bungert
stephenbungert at yahoo.de
Tue May 22 10:39:53 CEST 2012
Hi frank,
yeah I was looking at that. But my problem is that the records are of the
same type (Record A and B are the same model!).
"Frank Gerards" <F.Gerards at esolut.de> schrieb im Newsbeitrag
news:mailman.1924.1337672087.618.typo3-project-typo3v4mvc at lists.typo3.org...
Hi,
this is done in the TCA of Record-Type B, keywords here are
mm_opposite_field --- google it :)
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Stephen Bungert
Gesendet: Montag, 21. Mai 2012 22:29
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] Tips on how to get inverted MM relations
In my model I have a related records field. Record "A" for example can be
related to record "B" via an mm table.
This is fine. The related records are found when I view the detail page for
record "A". But the detail page for record "B" shows no related records. Is
there any easy way to get the detail page for record "B" to show record "A"
as a related record - the relationship exists. It's just that it was made
from A->B. I want to invert the relationship and find records that relate to
B. I know how to do this in a piBase extension, but how can I do this in an
extBase extension?
How can I change the fields used by contains() so that it looks for the uid
in uid_foreign instead of uid_local? Has anyone done this?
Thanks for any help.
Stephen.
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list