Not logged in. · Lost password · Register
Forum: General Help and Support Plugins Plugin Wishlist RSS
Tags hierarchy
Allow parent=>children relation between tags
Kali #1
Member since Sep 2008 · 2 posts · Location: Bzh
Group memberships: Members
Show profile · Link to this post
Subject: Tags hierarchy

I was looking for a tag plugin which allows tags hierarchy (like namespaces) :
animal could be a tag
animal:bird means bird tag is a subdivision of animal

I'm not sure "tag" is the right word, maybe keyword or category could be better ?

(It looks like namespaces, but a page can't be associated with more than one namespace)

Do you think this feature could be useful ?
(it may already exists but I didn't heard about it)
ryan.chappelle #2
User title: Chilean DW Fan
Member since May 2008 · 218 posts · Location: Temuco, Chile
Group memberships: Local Moderators, Members, Newsletter Team
Show profile · Link to this post
If it's like the concept of "categories" in MediaWiki-like software (ie.: Wikipedia), then it is my understanding that such functionality is already available through this plugin. You just need to call the tag the appropiate path, something like:

for page "Peregrine Falcon":
{{tag>:animal:bird:falconidae}} (notice the colon after the ">")

It is explained here:
Chilean DW Fan!
my plugins for DokuWiki
GULIX, my area's LUG
Surviving earthquakes since Feb 2010!
GCL #3
Member since Apr 2018 · 1 post
Group memberships: Members
Show profile · Link to this post
In reply to post #1
I know that this is an O-L-D post, but I got only recently involved with DokuWiki.
With the "tag" plugin, this can be solved by using multiple tags and representing your hierarchy in the tag namespaces:
For your "dogs" page:
      {{tag>category:animal subcategory:dog}}
For your "cats" page:
      {{tag>category:animal subcategory:cat}}

If you want to show a list of all animal wiki pages:

If you want to show a list of dog wiki pages:
      {{topic>category:animal +subcategory:dog}}

The "+" combination above ensures that you get only the pages that concern dogs as animals. You could for example have a set of Wiki pages with funny anecdotes about your own dog, which you would tag as {{tag>category:fun subcategory:dog}}.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-12-08, 03:43:32 (UTC +01:00)