|
Cookbook /
TagPagesSummary: Allow categorizing/tagging of pages with an easy interface.
Version: 0.1-beta
Prerequisites: PmWiki 2.2-beta series
Status: works for me
Maintainer: XES
Categories: Blog
Questions answered by this recipe
DescriptionSimple opaque web form for adding categories to a page. Varying levels of security available, but use should be limited to privileged users only. NotesDownload tagpages.phpΔ and place in pmwiki/cookbook/ folder of your website. Add to config.php: include_once 'cookbook/tagpages.php';
Optionally add before include line: $XESTagAuth = 'read';
Default is that edit permission is required to add tags to a page. It's easier than editing the page and adding several [[!Category]] markups to each page. However, if you have read-protected pages you want authorized readers to tag, you may use this line to allow people with read permissions the ability to tag pages. Alternatively you may change it to 'admin' for admin-only tagging abilities, etc. In-wiki usage example: add to Group/GroupFooter in wiki (change the "if auth" to match the privilege level so only people who can use the form will see it):
Optional: I've incorporated a Mediawiki-like div section at the bottom of the page showing the applicable tags. Add to your pub/css/local.css file (change as desired):
Release Notes
Future possibilities:
See Also
![]() ContributorsComments |