NP Glossary

From LordMattWiki

Jump to: navigation, search

A plugin for NucleusCMS.

Contents

[edit] Review

Please read Why Define for a justification of this plugin.

NP_Glossary scans a post as it is bing published and prepars a list of defined glossary words that it contains. Then at any time while the page is being rendered a Skinvar <%Glossary(list)%> can be used to generate a formatted listof jagon with both mouseover short explinaions and a link to something more meaty which may or may not be from the fuller text provided.

To encurage a steady rate of contribution of glossary terms to the system entries are made when posts are written. Each new post (or Admin rea edit) allows one new entry to be added to the collection.

When starting out this may seem a little odd but as time progresses you may still find yourself using jargon that will be added "one day". Rather than let that happen you can add it while you think about it.

The idea is that the collection of words defined grows organically with the blog.

[edit] Skin/Template Vars

  • <%Glossary(list)%> - outputs the glossary of terms for your post
  • <%Glossary(glossary)%> - outputs a full glossary of defined words
  • <%Glossary(glossary, specific-word)%> - outputs the glossary entry of a given word
  • <%Glossary(dynamic, listen)%> - produces the glossary entry for the word provided by in the POST URL var given. For example example.com/log/index.php?blogid=1&listen=myword

[edit] Tips and tricks

NP_ExtraSkinJP is a good companion for this as the skinvar <%Glossary(glossary)%> or <%Glossary(glossary, specific-word)%> allows you to output a full list.

Use a .htaccess file to format URLs something like example.com/glossary/word and then add rel="tag" as the inline extra attribute and you have a method to automatically tag your posts.

[edit] Related Plugins

Personal tools