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

Duplicating in Backend Repeater fields. #26

Open
sujithmsurendran opened this issue Mar 12, 2020 · 0 comments
Open

Duplicating in Backend Repeater fields. #26

sujithmsurendran opened this issue Mar 12, 2020 · 0 comments

Comments

@sujithmsurendran
Copy link

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'
        ]
    ]);
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant