Note:

If you want to create a new page for developers, you should create it on the Moodle Developer Resource site.

Talk:Creating a theme based on boost

From MoodleDocs
Revision as of 01:56, 24 January 2017 by Richard Jones (talk | contribs) (Understanding preset files loading)

Note on loading presets This section of code in settings.php (I've slightly modified it) does not seem to load preset files from a folder in the theme root called preset and insert them into the drop-down list.

Damyon: No - this code loads the preset files from a Moodle filearea named 'preset' - which is attached to the admin setting where you can upload more presets. If you want to load them from the files system you will need to do something closer to what the plain and default presets are doing.

Richard: OK, so hard-code them as for Boost. Otherwise you would create a setting for uploading and saving presets in the theme file area that duplicates pretty much what is already being done with the Moodle filearea. Got it, I think.

I'll take away all my junk then... (still in the history if anyone wants it).

09:16, 24 January 2017 (AWST)