http://www.wikidesign.ch/en/plugin/tag/start
You can categorize pages in Dokuwiki using tags. A “tag” is just a word that you assign to a page, to describe what the page is about. Pages can have multiple tags.
Tags in Dokuwiki are a bit tricky (hence the reason for this page).
I did not use Dokuwiki's admin screen, because I kept getting errors.
cp -r /your/dokuwikidir backupdir
cd <DIR>/lib/plugins
You can copy/paste these commands into a terminal.
wget http://www.qwik.ch/media/tag.tgz wget http://www.qwik.ch/media/feed.tgz wget http://www.qwik.ch/media/pagelist.tgz # Unzip the tgz files into the current directory (lib/plugins) tar -xzvf tag.tgz tar -xzvf feed.tgz tar -xzvf pagelist.tgz
You should now be able to use tagging. I don't remember any other steps
I finally figured out how to do tags correctly by using the examples I found here: http://wiki.jalakai.co.uk/dokuwiki/doku.php/tag/plugin
> character, separated by a space between the tags. Example: {{tag>dokuwiki tagging}}Obviously, you will want to find all the pages that have a certain tag. To do this, you use the topic thingy:
{{topic>}}
For example, this code {{topic>poker}} will show all the pages having “poker” as a tag:
| Page | Description | Tags |
|---|---|---|
| Bob's Poker Page | I suck at poker bob, poker | bob, poker |
| Jim | Jim's Page jim tag test jim, poker, personal | jim, poker, personal |
To show pages tagged with poker OR bob, just put both tags in the topic>. Example: {{topic>bob poker}}
| Page | Description | Tags |
|---|---|---|
| Bob | Bob's Page bob, boo boo | bob, boo boo |
| Bob's Poker Page | I suck at poker bob, poker | bob, poker |
| Jim | Jim's Page jim tag test jim, poker, personal | jim, poker, personal |
To show ONLY pages that have “bob” and “poker”, put a plus sign in front of “poker”.
Example: {{topic>bob +poker}}
| Page | Description | Tags |
|---|---|---|
| Bob's Poker Page | I suck at poker bob, poker | bob, poker |
You can tag a page with two words. Just make sure to enclose the tag in quotes.
Example: {{tag>"linux applications"}}
When listing pages tagged with “linux applications”, make sure you quote it there also.
Example: {{topic>"boo boo"}}
| Page | Description | Tags |
|---|---|---|
| Bob | Bob's Page bob, boo boo | bob, boo boo |
Notice how {{topic>boo boo}} doesn't show any pages. (no quotes around boo boo).
When listing pages that have a particular tag, Dokuwiki displays the first header of pages when listing the list, not the page name. For example, if you have a page named FOO, that has the header OVERVIEW, then “OVERVIEW” will show up in the list, not “FOO”.
The taggging functionality takes a little time to “set in”. When I installed and started using tagging, I experienced the following oddities:
You might have a page that is titled git, but you might want to link to all the pages that are tagged with git.
To do this, use a link like this:
http://notesmine.com/git?do=showtag&tag=git
Dokuwiki Tags plugin does this automagically if you have a page tagged foo, but no page that's actually named foo.
You can get fancy with tags and tag lists. For example, Dokuwiki can show different things when listing pages with a certain tag.
See this website for more info: http://wiki.splitbrain.org/plugin:tag