Warning: Undefined array key "REMOTE_USER" in /var/www/vhosts/web47.base.spaceindex.net/siebenhafen/wiki/lib/plugins/recaptcha2/action.php on line 120

Warning: Undefined array key "REMOTE_USER" in /var/www/vhosts/web47.base.spaceindex.net/siebenhafen/wiki/lib/plugins/tag/helper.php on line 416

Warning: Trying to access array offset on value of type bool in /var/www/vhosts/web47.base.spaceindex.net/siebenhafen/wiki/lib/plugins/tag/helper.php on line 421

Warning: Trying to access array offset on value of type null in /var/www/vhosts/web47.base.spaceindex.net/siebenhafen/wiki/lib/plugins/tag/helper.php on line 421

Warning: Undefined array key "userinfo" in /var/www/vhosts/web47.base.spaceindex.net/siebenhafen/wiki/lib/plugins/tag/helper.php on line 426

Warning: Trying to access array offset on value of type null in /var/www/vhosts/web47.base.spaceindex.net/siebenhafen/wiki/lib/plugins/tag/helper.php on line 426

Warning: Undefined array key "type" in /var/www/vhosts/web47.base.spaceindex.net/siebenhafen/wiki/lib/plugins/tag/helper.php on line 191
intern:tag_plugin

Inhaltsverzeichnis

Tag Plugin

Beispiel (dt.)

Tag-Label setzen

:!: Funktioniert mit Umlauten und ß nicht zuverlässig, daher lieber auf ae, oe, ue und ss ausweichen.

{{tag>Kategorie1 Kategorie2}}


ergibt (siehe ganz rechts)

{{tagpage>Gebraeuche&dynamic}}

ergibt

Components

Tag

{{tag>[list of tags]}}

^ [list of tags] | a space separated list of tags that describe the content of the current page | required |

Allows you to categorize your wiki pages. The resulting links either point to the corresponding page in the specified tag namespace (only if it exists). If you want a link to point to a page in another namespace, you have to indicate the namespace before the tag name. If this page doesn't exist, just the list of pages with the same tag is shown when you follow one of those links.

Examples:

Topic

{{topic>[tag]&[flags]}}
[tag] the category tag for which you want a list of pages required
[flags] pagelist flags delimited by &, see flags optional

This displays a list of all pages that contain the given category tag. The list is sorted alphabetically by page ID. You can also prepend the modifiers + and -. + creates an intersection between the list of pages created by the already defined tags and the pages matching the tag following the + (AND), - removes all pages tagged with the given tag from the list of already found pages.

Example:

Searchtags

 {{searchtags&[flags]}}
[flags] pagelist flags delimited by &, see flags optional

This displays a search form with the possibility to select a namespace and to select tags from a table of all tags that should either be in- or excluded with the option to choose if the tags should be associated with AND or OR. The results are displayed as in the topic component.

This is a great feature which you should not miss. Please add a screenshot of this cool feature. FIXME

And you might check out TagFilter Plugin for similar purpose but in different scenarios.

Example:

Count

{{count>[tag]}}
[tag] the category tag for which you want the list the occurrence required

This part allows you to display an overview of your current used tags. It prints the tag and the related occurrence (how often is the tag used?) in your wiki. Either you can specify a + as tag-name, which results in a list of all used tags or just specify some tags separated by spaces.

Example:

Tagpage

 {{tagpage>[tag][&dynamic][|title]}}

This displays a link to the listing of all tags as it is done by the Tag syntax but without tagging the page with that tag. With the optional dynamic flag the link becomes red when the listing of all pages with that tag is empty for the current user. The dynamic flag automatically disables the cache of the current page in order to ensure that the link color is always correct. Optionally a title can be specified that will be used as link name.

Example:

Configuration

The plugin can be configured with the DokuWiki configuration manager available in the admin menu.

namespace Namespace where the tag plugin looks for existing tag pages and links to them instead of the default tag overview. You could use the topic component to display the list of tags on such a page for example. (default tag)
sortkey Order in which tagged pages are sorted in the topic overview; available options are cdate as creation date, mdate as modification date, pagename, id as page ID, ns as namespace and title
sortorder Sort order of the topic overview.
pagelist_flags Comma separated Flags of the pagelist plugin which is used to display the topic overview
toolbar_icon Show icon in page editor toolbar to add tags.
list_tags_of_subns When counting tags in specified namespaces include also tags in subnamespaces.
tags_list_css Choose tags list style between standard or optimised for top of page position.