AutorÃa | Ultima modificación | Ver Log |
GLOSSARY FORMAT PLUGINS-----------------------Starting with Moodle 1.4, the glossary module supports a pluginarchitecture to create your own formats. This plugin system allowsyou to "invent" your own presentations for your glossary data. :-)To facilitate the creation process a TEMPLATE format has been created.You should use it as the base for your own modifications (this requiressome basic PHP skills). The template includes all the available data.Please, follow these STEPS:1.-Think of an English word (or short phrase) to define your format.For further reference in this document, we call it "THENAME".2.-Duplicate the TEMPLATE directory (under mod/glossary/formats/TEMPLATE).3.-Rename it to THENAME4.-Go into the THENAME directory and rename the TEMPLATE_format.php fileto THENAME_format.php5.-Edit the THENAME_format.php file. Change every ocurrence of TEMPLATE toTHENAME.6.-Login into Moodle. Go to any glossary in your site.7.-Edit (configure) your glossary. In the Format popup you'll see a newentry. It will be showed as "displayformatTHENAME". Select it and viewyour glossary.8.-Edit the THENAME_format.php. Make your format modifications and reload yourweb page to see them in your glossary. This file has been commented to makethings easier to understand (further suggestions welcome!)9.-If you want to translate your THENAME format name to some nice name tobe showed in the Format popup, simply, edit your lang/XX/glossary.phpfile (where XX is your language) and create a new displayformatTHENAMEstring.10.-Enjoy!! (and don't forget to send your amazing glossary formats tothe Glossary forum on http://moodle.org. They will be welcome!! ;-)To talk about Glossary formats, go to:http://moodle.org/mod/forum/view.php?id=742Eloy (stronk7)08/02/2004 (MM/DD/YYYY) :-D