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 4: Línia 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 Location ==
== Changing Theme Stoage Location ==
{{Moodle 1.7}}
{{Moodle 1.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.
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 availble 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:
For example, should you wish to place themes in a subdirectory called 'my_moodle_themes', your config.php might look like this:

Revisió del 14:56, 8 oct 2006

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.

Changing Theme Stoage Location

Plantilla: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 availble 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