Talk:Creating a theme based on boost: Difference between revisions
Damyon Wiese (talk | contribs) No edit summary |
(Understanding preset files loading) |
||
Line 4: | Line 4: | ||
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. | 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) | 09:16, 24 January 2017 (AWST) |
Revision as of 01:56, 24 January 2017
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)