Hello Friends,
I am developing a booktool type plugin, and I would like to ask if it is possible to create a settings screen for it so that it can have a global string set for it by the managers of the moodle site. I've tried the way that works for other plugins, but I don't know whether it didn't work because I did it wrong, or because it cannot work.
Thankyou very much
Hi Dany,
By taking a quick glance at the existing booktool type plugin I did not see a way to implement custom global settings.
A workaround which comes into my mind: Create a local plugin which allows you to set the values, and require this plugin by your booktype.
I'm having the same problem. I created a bug MDL-58022 in the tracker, and also attempted to fix the bug, but without success.
See https://github.com/ecampbell/moodle/blob/MDL-58022/mod/book/settings.php for my revised code.
I have a Book plugin at https://github.com/ecampbell/moodle-booktool_wordimport which is supposed to include custom settings code, but I'm not sure where the problem is. In any event, I don't see what I expect, which is a link to a settings page in a column to the right of the plugin name in the Plugins Overview page.
If you can spot any obvious coding errors, please let me know.
I believe I may have fixed this issue with a code patch I have placed at https://github.com/ecampbell/moodle/tree/MDL-58022/mod/book.
Unfortunately I cannot verify this as I didn't succeed in adding custom settings to my own book plugin, but you might like to copy the code and see if you can get your plugin to work.