Actions
Task #63928
closedWhy is MM_opposite_field working with inline?
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2014-12-16
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:
Description
Hi,
I have this situation:
A bidirectional MM relation
events <-> projects
In event I use select:
'projects' => array( ... 'config' => array( 'type' => 'select', 'foreign_table' => 'tx_extendeventmgmt_domain_model_projects', ...
In project is use inline:
'events' => array( 'exclude' => 1, 'label' => 'LLL:EXT:eventmgmt/Resources/Private/Language/locallang_db.xlf:tx_eventmgmt_domain_model_event.events', 'config' => array( 'type' => 'inline', 'foreign_table' => 'tx_eventmgmt_domain_model_event', 'MM' => 'tx_extendeventmgmt_event_projects_mm', 'MM_opposite_field' => 'projects', 'appearance' => array( 'collapseAll' => 0, 'levelLinksPosition' => 'top', 'collapseAll' => TRUE, 'showPossibleLocalizationRecords' => 1, ), 'behaviour' => array( 'localizationMode' => 'select', 'localizeChildrenAtParentLocalization' => TRUE, ), 'size' => 10, 'autoSizeMax' => 30, 'maxitems' => 9999, 'multiple' => 1, ), ),
When I select a project on the event side the event should also be shown on the project side.
When I add 'MM_opposite_field' => 'projects' it works, if I don't it doesn't.
As far as I know MM_opposite_field is just for "select", not for "inline" and the documentation (http://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Inline/Index.html) says nothing about MM_opposite_field.
Actions