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
Next revisionBoth sides next revision
plugin:tag [2017-02-02 17:48] – [Discussion] 194.230.64.178plugin:tag [2020-11-09 11:40] – version upped andi
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 359: 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 365: 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.txt · Last modified: 2024-01-19 23:43 by Aleksandr

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki