Skip to content
This repository was archived by the owner on Jul 31, 2022. It is now read-only.
This repository was archived by the owner on Jul 31, 2022. It is now read-only.

Duplicating in Backend Repeater fields. #26

@sujithmsurendran

Description

@sujithmsurendran

Is there any custom repeater field in the blog post form this tag fields duplicating there.
So add one condition before adding the field.

Existing code

$form->addSecondaryTabFields([
    'tags' => [
        'label' => 'bedard.blogtags::lang.form.label',
        'mode' => 'relation',
        'tab' => 'rainlab.blog::lang.post.tab_categories',
        'type' => 'taglist'
    ]
]);

Recommending

if (!$form->isNested) {
    $form->addSecondaryTabFields([
        'tags' => [
            'label' => 'bedard.blogtags::lang.form.label',
            'mode' => 'relation',
            'tab' => 'rainlab.blog::lang.post.tab_categories',
            'type' => 'taglist'
        ]
    ]);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions