Glossary

By Craig MacomberCraig Macomber

Description

This code makes a glossary page and category along with a button to add an entry. If your wiki needs a glossary it will work great. it works my using a new page module to add pages to the glossary category and then lists all pages in the glossary category alphabetically with previews using the pages module.

Code

[[module NewPage category="Glossary" button="Add Page to Glossary"]]
[[module Pages category="Glossary" preview="true"]]

In action

There is an example on http://thehurl.wikidot.com/glossary


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Craig Macomber


Rate this solution

If you think this solution is useful — rate it up!

rating: +22+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License