DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:tag

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Both sides next revision
plugin:tag [2016-11-19 10:32]
Aleksandr old revision restored (2016-10-14 04:07)
plugin:tag [2020-11-09 11:40] (current)
andi version upped
Line 6: Line 6:
 email      : freaks@dokuwiki.org email      : freaks@dokuwiki.org
 type       : syntax, action, helper type       : syntax, action, helper
-lastupdate : 2016-01-16 +lastupdate : 2020-09-26 
-compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort+compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather
 depends    : pagelist depends    : pagelist
 conflicts  conflicts 
Line 23: Line 23:
 ===== Description ===== ===== Description =====
  
-The Tag [[plugins|Plugin]] lets you assign category tags to wiki pages. +The Tag Plugin lets you assign category tags to wiki pages. 
  
 **Updating from before 2012-08-24**: Please remove the tag plugin and re-install it as the plugin manager has a [[bug>2594|bug]] so the update won't remove no longer needed parts of the plugin. This is a large change to the way the tag plugin stores the tags. If you don't want to wait till the tag index is automatically rebuilt by visiting the pages with the tags, you can [[#Tagindex Rebuild|rebuild]] the tag index manually. You also need to update the [[cloud]] plugin or the tag cloud won't work anymore. **Updating from before 2012-08-24**: Please remove the tag plugin and re-install it as the plugin manager has a [[bug>2594|bug]] so the update won't remove no longer needed parts of the plugin. This is a large change to the way the tag plugin stores the tags. If you don't want to wait till the tag index is automatically rebuilt by visiting the pages with the tags, you can [[#Tagindex Rebuild|rebuild]] the tag index manually. You also need to update the [[cloud]] plugin or the tag cloud won't work anymore.
Line 32: Line 32:
  
   {{tag>[list of tags]}}   {{tag>[list of tags]}}
-  +
 ^ [list of tags]  | a space separated list of tags that describe the content of the current page  | required  | ^ [list of tags]  | a space separated list of tags that describe the content of the current page  | required  |
  
Line 40: Line 40:
   * ''%%{{tag>tag1 tag2 tag3}}%%''    * ''%%{{tag>tag1 tag2 tag3}}%%'' 
   * with namespaces: ''%%{{tag>ns1:tag1 ns1:tag2 ns2:subns1:tag3}}%%''   * with namespaces: ''%%{{tag>ns1:tag1 ns1:tag2 ns2:subns1:tag3}}%%''
-  * mutiple word tags: ''%%{{tag>tag1_with_multiple_words tag2 tag3_part}}%%''+  * multiple word tags: ''%%{{tag>tag1_with_multiple_words tag2 tag3_part}}%%''
  
  
Line 75: Line 75:
   * ''%%{{searchtags}}%%'' -- The basic syntax   * ''%%{{searchtags}}%%'' -- The basic syntax
   * ''%%{{searchtags&nodate&desc&sort}}%%'' -- with [[:plugin:pagelist|pagelist]] options to change the design   * ''%%{{searchtags&nodate&desc&sort}}%%'' -- with [[:plugin:pagelist|pagelist]] options to change the design
 +  * ''%%{{searchtags&nonsform}}%%'' -- hide the namespace selector
 +
 +
 +
 ==== Count ==== ==== Count ====
  
   {{count>[tag]}}   {{count>[tag]}}
  
-^ [tag] | the category tag for which you want the list the occurrence | required |+^ [tag]  | the category tag for which you want to 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. 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.
Line 161: Line 165:
   * [[http://pe.hillschmidt.de|Prinz Eisenherz Lexikon]] (German)   * [[http://pe.hillschmidt.de|Prinz Eisenherz Lexikon]] (German)
   * [[http://wiki.psiconauti.net|Psiconauti]] (Italian)   * [[http://wiki.psiconauti.net|Psiconauti]] (Italian)
 +  * [[https://radeff.red/blog/cloud|Blog Fred Radeff]] (French)
  
  
Line 314: Line 319:
 } }
 </code> </code>
 +
 ==== How to change the word tag and topic to another language ==== ==== How to change the word tag and topic to another language ====
  
Line 319: Line 325:
  
 ===== Discussion ===== ===== Discussion =====
 +I want the description under the tag, is it possible to make a line brake or to get the description under the tag? Thx
 +
 Is there any tip for hierarchical tag? I try to categorize my pages. For example, there are two pages. A Persian cat page has {tag>animal:cat}. And a Dalmatian dog page has {tag>animal:dog}. If I write '{topic>animal}, I hope to see the two pages, but all I can see is blank. Yes, I can tag that {tag>animal dog}, {tag>animal cat}, but it is not fancy. Is there any tip for hierarchical tag? I try to categorize my pages. For example, there are two pages. A Persian cat page has {tag>animal:cat}. And a Dalmatian dog page has {tag>animal:dog}. If I write '{topic>animal}, I hope to see the two pages, but all I can see is blank. Yes, I can tag that {tag>animal dog}, {tag>animal cat}, but it is not fancy.
  
Line 357: Line 365:
 == Nothing was found. == == Nothing was found. ==
 Same here, get a Nothing was found page. Same here, get a Nothing was found page.
 +
 +(2017-03-28) I had the same problem. By coincidence, I switched to the default Dokuwiki template for an unrelated reason and got a different error when I clicked a tag link: "Helper plugin pagelist is not available." Installed the pagelist plugin and then it worked. This dependency needs to be documented.
  
 == SEO meta keywords == == SEO meta keywords ==
Line 363: Line 373:
 == Sorting the {{count>}} results == == Sorting the {{count>}} results ==
 Is there any way to sort the output of the %%{{count>}}%% command? I'd like to have a page of used tags in alphabetical order, but it seems that [[pagelist]] parameters are not supported.  --- [[user>Fabricio Rocha|Fabricio Rocha]] //2016-06-19 19:42// Is there any way to sort the output of the %%{{count>}}%% command? I'd like to have a page of used tags in alphabetical order, but it seems that [[pagelist]] parameters are not supported.  --- [[user>Fabricio Rocha|Fabricio Rocha]] //2016-06-19 19:42//
 +
 +This can be achieved by editing the ''helper.php'' file of the plugin.  Before the ''return $otag;'' line within the function ''tagOccurrences'', just insert the line ''ksort($otags);'' and that's all.  IMO this should be standard behavior.  --- Taylan
 +
 +== Unorderd List of all tags? ==
 +Is there a way to gen an unorderd list of all tags, similar as {{count>+}}, but without table and occurrences?
 +
 +== Filtering the list of Tags? ==
 +Hi, I have attempted to try an solve this but my apologies as I do not know enough about PHP. I use some tags on the site to create dynamic links and I was wondering if there is a way to have the tagsearch have the capability to ignore certain tags. In this case I start the dynamic tags with dw_ and would like to know if possible to filter out all the tags that start with dw_. Thanks for any help! Frank.
plugin/tag.1479547932.txt.gz · Last modified: 2016-11-19 10:32 by Aleksandr