Add new admin setting to Appearance->Navigation

Add new admin setting to Appearance->Navigation

by Rachel Fransen -
Number of replies: 1

I would like to add a custom setting on the Site Administration->Appearance->Navigation page. 

But for the life of me, I cannot find any documentation that specially details the process of doing so. 

I have tried to look inside the admin/settings/appearance.php file for some inspiration. But if I copy one of the settings and try to duplicate it for myself, I get a bunch of errors: like the whole "Appearance" admin settings tree is duplicated on the left block....

Would any of the kind developers here know documentation or tips on how to add a new "admin_settings_configselect" properly?

Thanks in advance!smile

Average of ratings: -
In reply to Rachel Fransen

Re: Add new admin setting to Appearance->Navigation

by Fred Woolard -

First place to look, as a backgrounder, might be on local plugins, here.

Another good resource I stumbled upon is this tracker ticket, MDL-30506.

And then the general Navigation API.

A note of the tracker ticket. I found that the functions need to be named, local_pluginname_extends_settings_navigation, and local_pluginname_extends_navigation in order to be picked up by the navigationlib.php routines global_navigation::intialise and settings_navigation::initialise.

Regards.