This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Densit
Densit

In October V1 I used a boot method in my plugin to extend the fields on CMS pages

public function boot()
{
    Event::listen('backend.form.extendFields', function ($widget) {
        if (
            !$widget->getController() instanceof \Cms\Controllers\Index ||
            !$widget->model instanceof \Cms\Classes\Page
        ) {
            return;
        }

        $widget->addTabFields([
            'viewBag[banner_image]' => [
                'label'   => 'Afbeelding banner',
                'type'    => 'mediafinder',
                'tab'     => 'Extra',
            ],
        ]);
    });
}

How can this be achieved in V2 where CMS is replaced by Editor?

daftspunky
daftspunky

Hi Densit,

Take a look at this blog post on how to extend the new Editor CMS area: https://octobercms.com/blog/post/introducing-cms-editor-extensibility-api

I hope this helps. Feel free to send us an email if you get stuck on anything.

Densit
Densit

Hi

Perfect, thanks!

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.