Forums / Developer / Glossary operator / Comment46861

Author Topic

Marco Zinn

Thursday 21 September 2006 2:01:35 pm

Comment46861

Hi there,
i had tried the glossary operator some months ago and it worked fine. I'm referring to Hans' "Updated Glossary Operator" (http://ez.no/community/contribs/template_plugins/updated_glossary_operator ) and i had tried this with ez 3.4
You will need a place (folder), where you have to store the words and descriptions of your glossary terms. You can use any class for this, for example, an article.
So, you'll have a folder with 50 articles, each of which defines one term of your glossary. The name of each article must be the word, that you describe.

Now, you have your glossary. In order to use it, run the operator on some text/XML; your example lookes fine to me.
Now, the operator has at least 2 Modes: One "Search and Replace", where each (or only the first) occurance of any word, that exists in your glossary (see above) will be linked to the glossary term. You would just output the result of that operation on the screen/in the template.
The second mode will not return some printable HTML, but an array with information (an array) about those glossary words, that were found in the input text. You can then use some template code ("section loop") to loop over the returned array and print the words (with links to each glossary term) below the article, for example.

I hope, this will help you a bit.

Marco
http://www.hyperroad-design.com