UserGuide: Tags plugin

This revision is from 2009/09/13 21:50. You can Restore it.

Tags plugin provides nonhiearchical categorizing. It can display Tag list and/or Tag cloud.

Syntax, omit space between { and "tags":

 { tags:Biography, LionWiki, Another tag} 

Tags are case insensitive.

Tags plugin supports both Tag List (shows tags for current page) and Tag Cloud. You can use them in template (will be displayed on every page) by inserting {plugin:TAG_LIST} or {plugin:TAG_CLOUD}, or in page by inserting {TAG_LIST} or {TAG_CLOUD}

Internals: tags for all pages are stored in one file - usually plugins/data/tags.txt. This file has simple format - it's filled with pairs of lines. First line is name of the page and second is comma separated list of tags belonging to this page.

Regenerating tag file(Edit)

Since LionWiki 3.0.8, it is possible to regenerate tag file from all pages at once. Use link with ?action=regenerate-tags

This is suitable for situations when you lost the tag file, or it is corrupted.

Note that this feature is quite slow for big websites - it must go through all the pages, read them, parse them and write the tag file.