Aquesta pàgina forma part de la documentació de Moodle en català, tot i que no ha estat traduïda encara. Podeu contribuir obertament a les tasques de traducció. Podeu consultar la Guia d'edició de la documentació i també participar ens els debats del fòrum de traductors de la documentació a moodle.org

Theme directory: diferència entre les revisions

De MoodleDocs
Salta a:navegació, cerca
Cap resum de modificació
Cap resum de modificació
Línia 16: Línia 16:
$CFG->themedir  = $CFG->dirroot . '/my_moodle_themes';
$CFG->themedir  = $CFG->dirroot . '/my_moodle_themes';
</pre>
</pre>


== Theme directory for Developers ==
== Theme directory for Developers ==


Developers should follow the [[Development:Theme directory guide]]
Developers should follow the [[Development:Theme directory guide]]
== See Also ==
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=20152 Feature request: Themes path in a VAR]
*Moodle Tracker [http://tracker.moodle.org/browse/MDL-6784 MDL-6784] 


[[Category:Administrator]]
[[Category:Administrator]]

Revisió del 13:54, 8 oct 2006


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

Moodle is flexible and starting with 1.7, moodle will fully support changing the location of the theme directory.

Changing theme Location

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 specified directory 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