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!
Would their be a search glossary button or category
Joshua Darby
Wikidot Support Mentor | Icon Deposit Profile
I am looking for a HOVER glossary… you know a marked word in a paragraph on wich you can hover and the explination pops up… any idea?
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
I also want this, no one seems to be able to help (except suggesting Bibliography or References)
Steven is writing a wonderful howto: http://community.wikidot.com/howto:popup have a look about he status….
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Steven has made this work beautifully!!!
Finished for now… I also am working on a glossary, it works but since ListPages does not work recursively… pages that are generated with ListPages can not contain this PopUp… So it only works (the glossary) with simple pages. Coming soon.
A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.
I've made some modifications to the original code…
Code
In action
http://www.definitive-socionics.info/glossary
I would like to show a "create this page." after a user search returns back "Sorry, no results found for your query."
Is ther a way to do this?
You can add a NewPage module to appear all the time, whether there are any results or not.
Changing content based on a module's results though, is impossible.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Is there any way to subdivide the glossary or create multiple separate glossaries on a single site that don't automatically use the existing entries?
This is awesome! It really helped me on my site, although I had to modify the code a bit! To see how I used it, check out my site.
http://buddypages.wikidot.com/