« Filtres (administrateur) » : différence entre les versions
(→Censure de mots inadéquats : Typo) |
(Modification structure) |
||
Ligne 5 : | Ligne 5 : | ||
== Page d'administration des filtres == | == Page d'administration des filtres == | ||
{{Moodle 1.6}} | {{Moodle 1.6}} | ||
== Filtres == | |||
== Notation Algebra == | === Notation Algebra === | ||
This filter will convert algebra code into GIF images. It requires the tex filter to be installed ([[#TeX notation|see below]]). | This filter will convert algebra code into GIF images. It requires the tex filter to be installed ([[#TeX notation|see below]]). | ||
== Liens automatiques des glossaires == | === Liens automatiques des glossaires === | ||
As the name suggests, this filter enables automatic linking of [[mod/glossary/index|glossary]] entries. In addition to this filter, individual glossary entries should have the "This entry should be automatically linked" box checked. | As the name suggests, this filter enables automatic linking of [[mod/glossary/index|glossary]] entries. In addition to this filter, individual glossary entries should have the "This entry should be automatically linked" box checked. | ||
Ligne 27 : | Ligne 22 : | ||
// $CFG->filtermatchonepertext = true; | // $CFG->filtermatchonepertext = true; | ||
== Extensions multimédia == | === Extensions multimédia === | ||
The [[Multimedia plugins]] filter looks for links to various media and replaces them with a proper plugin. | The [[Multimedia plugins]] filter looks for links to various media and replaces them with a proper plugin. | ||
== Contenus multilingues == | === Contenus multilingues === | ||
This filter enables resources to be created in multiple languages. It looks for <lang> tags which indicate that a text contains multiple languages. Then it selects and outputs the best language for the current user. The language of the resource will change when the user changes their selected Moodle language. | This filter enables resources to be created in multiple languages. It looks for <lang> tags which indicate that a text contains multiple languages. Then it selects and outputs the best language for the current user. The language of the resource will change when the user changes their selected Moodle language. | ||
Ligne 40 : | Ligne 35 : | ||
<lang lang="YY">your_content_in_other_language_here</lang> | <lang lang="YY">your_content_in_other_language_here</lang> | ||
== Notation TeX == | === Notation TeX === | ||
The [[Filtre TeX]] converts TeX code into GIF images. It requires a binary program called [[MimeTeX]] - versions for Linux (glib2.3), Windows and Mac OS X are included. | The [[Filtre TeX]] converts TeX code into GIF images. It requires a binary program called [[MimeTeX]] - versions for Linux (glib2.3), Windows and Mac OS X are included. | ||
== Tidy == | === Tidy === | ||
The tidy filter checks whether HTML code is XHTML compliant, tidying where necessary. To make this filter work you need to have PHP compiled. The discussion [http://moodle.org/mod/forum/discuss.php?d=28418 Tidy Filter for Moodle 1.5] contains more details. | The tidy filter checks whether HTML code is XHTML compliant, tidying where necessary. To make this filter work you need to have PHP compiled. The discussion [http://moodle.org/mod/forum/discuss.php?d=28418 Tidy Filter for Moodle 1.5] contains more details. | ||
== Censure de mots inadéquats == | === Censure de mots inadéquats === | ||
{{Moodle 1.6}} | {{Moodle 1.6}} | ||
* [[Word censorship|Word censorship in 1.6]] | * [[Word censorship|Word censorship in 1.6]] | ||
Ligne 60 : | Ligne 55 : | ||
* Edit ''lang/xx/censor.php'', adding any words you wish to ban | * Edit ''lang/xx/censor.php'', adding any words you wish to ban | ||
* Type some bad words in the HTML editor, as a test. After saving your post, all bad words will be blacked out. | * Type some bad words in the HTML editor, as a test. After saving your post, all bad words will be blacked out. | ||
== Contrôles du cache == | |||
=== Durée de vie du cache texte === | |||
=== Filtrer les fichiers déposés === | |||
{{Moodle 1.6}} | |||
=== Filtrer une occurence par page === | |||
=== Filtrer une occurence par élément === | |||
=== Filtrer toutes les chaînes de caractères === | |||
== Réglages dans ''config.php'' == | |||
{{Moodle 1.5}} | |||
== Filtres non-standards == | == Filtres non-standards == |
Version du 11 août 2006 à 10:05
Les filtres permettent la transformation automatique de texte saisi dans des formes différentes, souvent plus complexes. Par exemple, les titres des ressources peuvent devenir automatiquement des hyperliens vers la ressource correspondante. les URLs pointant vers des fichiers peuvent se transformer en un mini contrôleur intégré dans la page web, vous permettant d'interrompre la lecture ou de rembobiner le son. Les possibilités sont multiples. Il existe divers filtres standards inclus dans Moodle, et beaucoup d'autres filtres spécialisés mis à disposition par la communauté.
Les filtres peuvent être ajoutés ou supprimés en les copiant ou les effaçant du dossier /filters. Moodle détecte automatiquement les filtres présents et les rend disponibles.
Page d'administration des filtres
Moodle1.6
Filtres
Notation Algebra
This filter will convert algebra code into GIF images. It requires the tex filter to be installed (see below).
Liens automatiques des glossaires
As the name suggests, this filter enables automatic linking of glossary entries. In addition to this filter, individual glossary entries should have the "This entry should be automatically linked" box checked.
It's possible to fine-tune text filtering by adding the following lines from config-dist.php to config.php and removing the //.
// Enabling this will make most text-based filters only match the first time // a phrase occurs in a given text. Otherwise all are matched. // $CFG->filtermatchonepertext = true;
Extensions multimédia
The Multimedia plugins filter looks for links to various media and replaces them with a proper plugin.
Contenus multilingues
This filter enables resources to be created in multiple languages. It looks for <lang> tags which indicate that a text contains multiple languages. Then it selects and outputs the best language for the current user. The language of the resource will change when the user changes their selected Moodle language.
To use this feature first create your contents in multiple languages (in the same resource). Then enclose each language block in the following tags:
<lang lang="XX">your_content_here</lang> <lang lang="YY">your_content_in_other_language_here</lang>
Notation TeX
The Filtre TeX converts TeX code into GIF images. It requires a binary program called MimeTeX - versions for Linux (glib2.3), Windows and Mac OS X are included.
Tidy
The tidy filter checks whether HTML code is XHTML compliant, tidying where necessary. To make this filter work you need to have PHP compiled. The discussion Tidy Filter for Moodle 1.5 contains more details.
Censure de mots inadéquats
Moodle1.6
To enable word censorship in 1.5, Moodle1.5
- Activate the word censorship filter
- Edit config.php in in the root folder
- Under
// 7. OTHER MISCELLANEOUS SETTINGS
add the line
$CFG->textfilter1 = 'filter/censor/filter.php';
- Edit lang/xx/censor.php, adding any words you wish to ban
- Type some bad words in the HTML editor, as a test. After saving your post, all bad words will be blacked out.
Contrôles du cache
Durée de vie du cache texte
Filtrer les fichiers déposés
Moodle1.6
Filtrer une occurence par page
Filtrer une occurence par élément
Filtrer toutes les chaînes de caractères
Réglages dans config.php
Moodle1.5
Filtres non-standards
- Filtre Jmol - for interactive 3D viewing of molecular structures
- Code Syntax Highlighting - for more readable excerpts of programming languages including PHP, HTML, CSS, and XML amongst many others
Voir aussi
- Téléchargements Moodle : Filtres
- Discussion Multimedia plugin vs object embed (en anglais)
- Discussion Size of embedded Flash (en anglais)