Missing toolbar buttons (displayMode - document)

Hi! No dedicated buttons have been added to the toolbar for the ‘relation’ field type.

    categories:
        label: Categories
        span: adaptive
        nameFrom: name
        descriptionFrom: excerpt
        type: relation
        tab: Categories
# config_relation.yaml
categories: 
    label: 'Categories'
    view:
        list: 
            columns:
                name:
                    label: 'Nane'
                    type: text
        toolbarButtons: add|remove|create
        showSearch: true

Is there something missing in my configuration? The ‘fileupload’, ‘richeditor’, ‘mediafinder’ and ‘repeater’ buttons are displayed correctly next to the ‘Save’ button.

OC 4.3

Hey @Radek

Try adding this to the config_relation.yaml definition

externalToolbarBus: document

We should make this happen automatically, I think.

1 Like

@daftspunk thank you, that’s the solution

I have one more question. Can I add a custom dropdown to the toolbar in the _form_buttons.php file?

I tried using dropdownButton, but it didn’t appear. For example:

<?php Ui::dropdownButton(label: 'Actions')->slot() ?>
<?= Ui::dropdownItem(label: 'Edit', handler: 'onEdit') ?>
<?php Ui::end() ?>

Hey @Radek

Thanks for confirming. We’ll add support for dropdowns in v4.3.1

1 Like