1 |
efrain |
1 |
GLOSSARY FORMAT PLUGINS
|
|
|
2 |
-----------------------
|
|
|
3 |
|
|
|
4 |
Starting with Moodle 1.4, the glossary module supports a plugin
|
|
|
5 |
architecture to create your own formats. This plugin system allows
|
|
|
6 |
you to "invent" your own presentations for your glossary data. :-)
|
|
|
7 |
|
|
|
8 |
To facilitate the creation process a TEMPLATE format has been created.
|
|
|
9 |
You should use it as the base for your own modifications (this requires
|
|
|
10 |
some basic PHP skills). The template includes all the available data.
|
|
|
11 |
|
|
|
12 |
Please, follow these STEPS:
|
|
|
13 |
|
|
|
14 |
1.-Think of an English word (or short phrase) to define your format.
|
|
|
15 |
For further reference in this document, we call it "THENAME".
|
|
|
16 |
2.-Duplicate the TEMPLATE directory (under mod/glossary/formats/TEMPLATE).
|
|
|
17 |
3.-Rename it to THENAME
|
|
|
18 |
4.-Go into the THENAME directory and rename the TEMPLATE_format.php file
|
|
|
19 |
to THENAME_format.php
|
|
|
20 |
5.-Edit the THENAME_format.php file. Change every ocurrence of TEMPLATE to
|
|
|
21 |
THENAME.
|
|
|
22 |
6.-Login into Moodle. Go to any glossary in your site.
|
|
|
23 |
7.-Edit (configure) your glossary. In the Format popup you'll see a new
|
|
|
24 |
entry. It will be showed as "displayformatTHENAME". Select it and view
|
|
|
25 |
your glossary.
|
|
|
26 |
8.-Edit the THENAME_format.php. Make your format modifications and reload your
|
|
|
27 |
web page to see them in your glossary. This file has been commented to make
|
|
|
28 |
things easier to understand (further suggestions welcome!)
|
|
|
29 |
9.-If you want to translate your THENAME format name to some nice name to
|
|
|
30 |
be showed in the Format popup, simply, edit your lang/XX/glossary.php
|
|
|
31 |
file (where XX is your language) and create a new displayformatTHENAME
|
|
|
32 |
string.
|
|
|
33 |
10.-Enjoy!! (and don't forget to send your amazing glossary formats to
|
|
|
34 |
the Glossary forum on http://moodle.org. They will be welcome!! ;-)
|
|
|
35 |
|
|
|
36 |
To talk about Glossary formats, go to:
|
|
|
37 |
http://moodle.org/mod/forum/view.php?id=742
|
|
|
38 |
|
|
|
39 |
Eloy (stronk7)
|
|
|
40 |
08/02/2004 (MM/DD/YYYY) :-D
|