This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
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
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.
1-4 of 4