【问题标题】:TYPO3 TCA foreign where field = uidTYPO3 TCA 外部字段 = uid
【发布时间】:2017-07-28 12:47:27
【问题描述】:

我有 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'
    ),
),

我扩展了 fe_users。一切正常,有点这个配置不起作用。我需要获取foreign_table.user_from = current_uid 或foreign_table.user_to 的所有项目。是否可以 ?

【问题讨论】:

    标签: typo3


    【解决方案1】:
    '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',

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多