TYPO3 TCA foreign where field = uid -
i have typo3 7.6.18
'friends' => array( 'label' => 'lll:ext:feusersplus/resources/private/language/locallang_db.xlf:friends', 'config' => array( 'type' => 'inline', 'foreign_table' => 'tx_feuserfriends_domain_model_friend', 'foreign_match_fields' => [ 'user_from' => '###this_uid### ' ], 'foreign_table_where' => 'tx_feuserfriends_domain_model_friend.sys_language_uid=###rec_field_sys_language_uid### ', 'maxitems' => '5000' ), ),
i extended fe_users. works, bit configuration does't works. need items foreign_table.user_from = current_uid or foreign_table.user_to. possible ?
'friends' => array( 'label' => 'lll:ext:feusersplus/resources/private/language/locallang_db.xlf:friends', 'config' => array( 'type' => 'inline', 'foreign_table' => 'tx_feuserfriends_domain_model_friend', 'foreign_field' => 'user_from', 'symmetric_field' => 'user_to', 'maxitems' => '5000' ), ),
solution 'symmetric_field' => 'user_to',
Comments
Post a Comment