Hi!
I have been testing DokuWiki for two programming-related websites I have in mind.
For both sites, the feature in the title would be highly useful.
I would like to be able to apply an hierarchical taxonomy of tags to parts of a page. Then, the user might use a multiple-choice page widget (listbox, checkboxes or such) for showing only the paragraphs or sections classified with certain tags, along with the parts not classified at all. Something like:
- every content is shown by default;
- if a certain tag is selected, every other content of the page is hidden except:
- content which is not tagged
- content tagged with the selected tag
- content tagged with direct ancestors of the selected tag
- content tagged with any of the eventual descendents of the selected tag
It is not hard to imagine the client-side JavaScript for that, but it requires some server-side features such as:
- a way to organize tags hierarchically
- a way to apply tags not only to whole pages, but also to sections (headings-delimited) or elements of a page (a paragraph, an image, etc) or even groups of such elements
- eventually it might be useful that the tags applied to a part were not rendered as part of the text, but maybe in something like a WRAP box, or an icon, or different style classes, etc
- a way to define a link between an individual tag to a specific "description page", which might have a different file name or title (for example: clicking on a tag "bc31" might lead to page "Borland C 3.1 and Application Frameworks").
- it would be useful to have in such "tag description pages" a list of pages of other namespace which contain parts of their content classified with that tag
So I am trying to get that with DokuWiki. Might it be possible?
The tags plugin seems able to understand a namespace and its pages as an hierarchical taxonomy. It seems sufficient for the taxonomy structure I have in mind, so item 1 seems solved. But I still have not found the right way to map an individual tag to a "description page" as mentioned in item 4. Is it required that the file name of a page in the tags namespace is exactly the tag?
For item 2 I have been experimenting with the tagsections plugin. Do you know of any other plugin with this purpose?
For item 3, would it be possible to use the Wrap plugin for rendering parts of content based on tags applied to them? Or would there be other plugins which might do it?
For the show/hide parts of a page, client-side, the tagfilter plugin might help, it seems. But do you know of any other plugin which might work for that?
I know, that's a huge post. Thanks for reading and for any suggestion you might give!
Fabricio Rocha
Brasilia, Brasil