Thanks again, Dominique...
Finally, this code works for me:
if (has_capability('local/slider:modify', context_system::instance())) {
$ADMIN->add('root',new admin_category('Slider', 'Slider'));
$settings = new admin_settingpage('local_slider','Slider','local/slider:modify',false);
$ADMIN->add('Slider',$settings);
.....
Seems it's not possible that this option appears in the menu of local extensions, but yes as a new branch...
Finally, this code works for me:
if (has_capability('local/slider:modify', context_system::instance())) {
$ADMIN->add('root',new admin_category('Slider', 'Slider'));
$settings = new admin_settingpage('local_slider','Slider','local/slider:modify',false);
$ADMIN->add('Slider',$settings);
.....
Seems it's not possible that this option appears in the menu of local extensions, but yes as a new branch...
Thanks again for your time and interest!
Best regards