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
m (removing 1.7 template)
 
(10 revisions intermèdies per 6 usuaris que no es mostren)
Línia 1: Línia 1:
{{Themes}}
{{Themes}}In the standard Moodle distribution, all themes are placed in the theme/ directory.
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 [[:dev:Theme_basics#What_is_inside_a_theme_folder.3F|Theme basics]]


== Changing Theme Storage Location ==
== Change themes default directory for site ==
{{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.
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:
For example, should you wish to place themes in a subdirectory called 'my_moodle_themes', your config.php might look like this:
Línia 18: Línia 17:
== Theme directory for Developers ==
== Theme directory for Developers ==


Developers should follow the [[Development:Theme directory guide]]
Developers should follow the [[:dev:Theme directory guide|Theme directory guide]]


== See Also ==
== See also ==


*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=20152 Feature request: Themes path in a VAR]
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=20152 Feature request: Themes path in a VAR]
Línia 27: Línia 26:
[[Category:Administrator]]
[[Category:Administrator]]
[[Category:Themes]]
[[Category:Themes]]
[[fr:Dossier de thèmes]]
[[ja:テーマディレクトリ]]
[[de:Design-Verzeichnis]]

Revisió de 06:57, 8 jul 2011

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

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

Change themes default directory for site

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 Theme directory guide

See also