Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Theme directory.

Theme directory: Difference between revisions

From MoodleDocs
No edit summary
(change heading, now duplicated in configuration file)
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
From version 1.7, moodle will support changing the location which themes are stored in and used with the theme selector.
From version 1.7, moodle will support changing the location which themes are stored in and used with the theme selector.


== Changing Theme Storage Location ==
More information about the content of a typical theme directory/folder can be found in [[Theme_basics#What_is_inside_a_theme_folder.3F|Theme basics]]
 
== Change themes default directory for site ==
{{Moodle 1.7}}
{{Moodle 1.7}}
Starting from Moodle 1.7, the storage location of themes may be altered, using the variables ''$CFG->themewww'' and ''$CFG->themedir''. Themes from placed in the directory specified by these variables will then be available for selection using the theme selector.
Starting from Moodle 1.7, the storage location of themes may be altered, using the variables ''$CFG->themewww'' and ''$CFG->themedir''. Themes from placed in the directory specified by these variables will then be available for selection using the theme selector.

Latest revision as of 10:39, 3 April 2010


In the standard Moodle distribution, all themes are placed in the theme/ directory.

From version 1.7, moodle will support changing the location which themes are stored in and used with the theme selector.

More information about the content of a typical theme directory/folder can be found in Theme basics

Change themes default directory for site

Moodle1.7


Starting from Moodle 1.7, the storage location of themes may be altered, using the variables $CFG->themewww and $CFG->themedir. Themes from placed in the directory specified by these variables will then be available for selection using the theme selector.

For example, should you wish to place themes in a subdirectory called 'my_moodle_themes', your config.php might look like this:

$CFG->wwwroot   = 'http://my.moodle.site.edu';
$CFG->dirroot   = '/var/www/my.moodle.site.edu/public_html';
$CFG->themewww  = $CFG->wwwroot . '/my_moodle_themes';
$CFG->themedir  = $CFG->dirroot . '/my_moodle_themes';

Theme directory for Developers

Developers should follow the Development:Theme directory guide

See Also