Booktool settings

Booktool settings

by dany burton -
Number of replies: 3

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

Average of ratings: -
In reply to dany burton

Re: Booktool settings

by Sebastian Schedlbauer -

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.

In reply to Sebastian Schedlbauer

Re: Booktool settings

by Eoin Campbell -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

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.