문제

Is there a possibility to add a field, which could contain relationship to multiple types of records ?

I need flux's equivalent for such TCA definition :

    'related_data_elements' => array(
        'exclude' => 1,
        'label' => 'Label',
        'config' => array(
            'type' => 'group',
            'internal_type' => 'db',
            'allowed' => 'tt_address_group, tt_address, tx_cal_event, tx_cal_category', 
            'size' => 10,
            'minitems' => 0,
            'maxitems' => 50,
        )
    )
도움이 되었습니까?

해결책

In Flux 6.0.x there is the group type ViewHelper; the allowed attribute on this supports CSV lists of table names.

However, in Flux 7.0.0 and the current git masters, the group type has been removed and replaced by a relation field type. This new field type currently only supports single-table relations, but another type is up-and-coming which will solve that: the multiRelation field type (currently not committed).

The multiRelation field is the one you need - sorry to report that it is not yet finished, but keep an eye out - I expect it to be committed soon (at the very least before 6.2 LTS gets released).

Cheers,
Claus

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top