Difference between revisions of "Theme directory"

Jump to: navigation, search
Line 1: Line 1:
{{Moodle 1.7}}
 
 
{{Themes}}
 
{{Themes}}
  
Line 7: Line 6:
  
 
== Changing theme Location ==
 
== Changing theme Location ==
 
+
<span class="small-info-right"><span class="text-small">Moodle</span><span class="text-big new">1.7</span></span>
 
Starting from Moodle 1.7, the 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 be able to be selected using the theme selector.
 
Starting from Moodle 1.7, the 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 be able to be selected using the theme selector.
  

Revision as of 14:05, 8 October 2006


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

From version 1.7, moodle will fully support changing the location which themes are stored in.

Changing theme Location

Moodle1.7 Starting from Moodle 1.7, the 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 be able to be selected 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