Note: You are currently viewing documentation for Moodle 3.6. Up-to-date documentation for the latest stable version of Moodle is likely available here: Theme location.

Theme location: Difference between revisions

From MoodleDocs
No edit summary
 
Line 1: Line 1:
{{Themes}}
{{Themes}}
In the standard Moodle distribution, all themes are placed in the theme/ directory of moodle. However, it is possible to use a different location for themes with version 1.7.


== Changing theme Location ==
== Changing theme Location ==


Starting from Moodle 1.7, the location of themes may be altered, using the variables ''$CFG->themewww'' and ''$CFG->themedir''
Starting from Moodle 1.7, the location of themes may be altered, using the variables ''$CFG->themewww'' and ''$CFG->themedir''
If you wish to place themes in a subdirectory called 'my_moodle_themes', your config.php might look like this:
<pre>
$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';
</pre>
[[Category:Administrator]] [[Category:Developer]]

Revision as of 12:25, 8 October 2006


In the standard Moodle distribution, all themes are placed in the theme/ directory of moodle. However, it is possible to use a different location for themes with version 1.7.

Changing theme Location

Starting from Moodle 1.7, the location of themes may be altered, using the variables $CFG->themewww and $CFG->themedir

If 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';