Designs FAQ

Version vom 10. Oktober 2009, 00:05 Uhr von Jörg Weißenhorner (Diskussion | Beiträge) (Wie installiere ich ein neues Design?)

Wechseln zu: Navigation, Suche

Hinweis: Sie sind auf den Seiten der Moodle 1.9 Dokumentation. Die Dokumentation der aktuellsten Moodle-Version finden Sie hier: Designs FAQ.

Vorlage:Themes

Wie installiere ich ein neues Design?

Designsadmin.png
  1. Entpacken Sie die ZIP-Datei in ein leeres lokales Verzeichnis.
  2. Laden Sie dieses Verzeichnis auf dem Server nach /moodle/theme/[Name des Designs]. Ersetzen Sie [Name des Designs] durch den Namen des heruntergeladenen Designs. Stellen Sie sicher, dass das Verzeichnis durch den Webserver gelesen werden kann. Setzen Sie dazu die Lese-/Schreibrechte des Verzeichnisses auf 755 - Eigentümer read/write/execute, Gruppe read/execute, Jeder read/execute. Hierbei kann ein Fehler dazu führen, dass das Design nicht angezeigt werden kann.
  3. Wählen Sie das Design zur endgültigen Aktivierung im Administrationsmenü (Darstellung - Designs - Designauswahl] aus.

How do I create a custom theme?

See Creating a custom theme and/or Make your own theme.

How can I get the New Moodle2 theme for my site?

Not til Moodle 2.x comes out and it will be a "sort of". The new look (refered to as "Moodle2") for Moodle.org was made public just before the close of 2008. The Moodle2 look has various things hard coded into its fabric. The good news is that many pieces of the look are available.

Will I lose my courses, language files, logo, etc. if I switch my theme?

Switching themes only changes the appearance of your site, not the content within it. The logo is a part of the theme and will be lost when you switch.

Follow these instructions to add a logo to a theme.

Are there tools which help me creating and editing themes?

Clear Cache Button

This useful Firefox add-on let's you add a button to your tool bar for easily clearing your cache while working on your theme: https://addons.mozilla.org/de/firefox/addon/1801

Please note that the following tools are only for development. They only change the way you see your Moodle site, not the Moodle site itself. Any changes you make using these tools will not be visible to anyone else who uses your site. For this you will have to make those changes permanent by changing your theme's CSS files for example.

Firebug

The single most useful tool is the Firebug add-on for the Firefox web browser. Firebug integrates with Firefox to put a wealth of development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page... And there are additional add-ons for making Firebug an even more powerful tool.

Web Developer Toolbar

Another great tool for any web developer is the Web developer extension, another Firefox add-on. One very useful feature is the option to disable your browser's cache while working on your theme. That way you are sure you're always presented with your latest modifications and not with an older, cached version.

Stylish

Modifications made with Firebug are lost when refreshing your page. If you want your CSS changes to be a bit more permanent, for example to try them with different pages of your Moodle installation, you can use another Firefox plugin: Stylish. That way you can change your site's CSS with a simple mouse click without having to change Moodle code.

See Stylish for detailed instructions and examples.

How do I check for cross-browser compatibility?

There are some tools (standalone and online) which can show you how your site looks in different browsers. See this forum discussion for details.

Where do I find concrete examples for modifying Moodle themes?

See Theme scrapbook (soon to be incorporated in this page).

See also