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

Keios
Keios

Sharing some insight: if you find yourself needing to extend settings model implementing SettingsModel behaviour, you may notice, that there's no easy way to access dynamic controller created to display settings registered via class index of $plugin->registerSettings method. I've found a way to do that however and it works just fine:

Event::listen('backend.form.extendFields', function ($form) {
   if (!$form->model instanceof \SomeVendor\SomePlugin\Models\Settings)
        return;

   $form->addTabFields([
       'test' => [
           'label' => 'Test Label',
           'tab' => 'Test Tab'
       ]
   ]);
});

Use that code in register method of your own plugin. This way you can add your own settings to other plugins. Thanks to OctoberCMS for awesome extensibility.

Last updated

walidh9326228
walidh9326228

I signed up here to say thank you @Keios.

Also many many thanks to Alexey and Samuel for the best CMS I have ever seen.

Tainui
Tainui

Thumbs up !

october-cms66467
october-cms66467

I also signed up here to say thank you @Keios.

1-4 of 4

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