This shows you the differences between two versions of the page.
|
plugin:tag [2009/12/14 10:18] chi |
plugin:tag [2010/08/19 22:40] (current) 88.160.29.72 [RSS feed by tag] |
||
|---|---|---|---|
| Line 12: | Line 12: | ||
| similar : | similar : | ||
| tags : navigation, blog, tags, listing | tags : navigation, blog, tags, listing | ||
| + | |||
| + | downloadurl: http://github.com/dokufreaks/plugin-tag/zipball/master | ||
| + | bugtracker : http://github.com/dokufreaks/plugin-tag/issues | ||
| + | sourcerepo : http://github.com/dokufreaks/plugin-tag/ | ||
| + | donationurl: | ||
| ---- | ---- | ||
| Line 24: | Line 29: | ||
| ===== Components ===== | ===== Components ===== | ||
| - | |||
| ==== Tag ==== | ==== Tag ==== | ||
| Line 36: | 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}}%%'' | ||
| - | |||
| - | |||
| - | |||
| ==== Topic ==== | ==== Topic ==== | ||
| Line 61: | Line 62: | ||
| ^ ''sortkey'' | Order in which tagged pages are sorted in the topic overview available options are creation date, modification date, page name, page ID and title | | ^ ''sortkey'' | Order in which tagged pages are sorted in the topic overview available options are creation date, modification date, page name, page ID and title | | ||
| ^ ''sortorder'' | Sort order of the topic overview. | | ^ ''sortorder'' | Sort order of the topic overview. | | ||
| - | ^ ''pagelist_flags'' | Comma separated [[plugin:pagelist#Flags]] of the [[plugin:pagelist]] plugin which is used to display the topic overview | | + | ^ ''pagelist_flags'' | Ampersand separated [[plugin:pagelist#Flags]] of the [[plugin:pagelist]] plugin which is used to display the topic overview | |
| - | ==== Ping ==== | + | ===== Tagindex Rebuild ===== |
| + | |||
| + | If the tag index becomes corrupted somehow (such as by using page move), then you can rebuild it by using the "Tagindex Manager" link on the admin page. Index corruption may show itself by the cloud plugin showing the wrong popularity weights in the tag cloud. Note that the dialog suggests to back up "tag.idx", where the actual file name is "topic.idx". | ||
| + | |||
| + | ===== Ping ===== | ||
| This plugin automatically pings Technorati on the creation of a new page. This behavior can be turned off in the configuration manager. | This plugin automatically pings Technorati on the creation of a new page. This behavior can be turned off in the configuration manager. | ||
| Line 70: | Line 75: | ||
| You can see the plugin in action [[http://chimeric.de/_demo/plugin:tag|here]]. | You can see the plugin in action [[http://chimeric.de/_demo/plugin:tag|here]]. | ||
| - | |||
| - | ===== Bugs / Feature Requests ===== | ||
| - | Please report bugs or feature requests at the [[http://github.com/dokufreaks/plugin-tag/issues|Bug tracker]]. | ||
| - | |||
| - | ===== Further Resources ===== | ||
| - | * [[http://github.com/dokufreaks/plugin-tag/tree/master|Git Repository]] | ||
| - | * [[http://github.com/dokufreaks/plugin-tag/issues|Bug Tracker]] | ||
| ===== Changes ===== | ===== Changes ===== | ||
| {{rss>http://github.com/feeds/dokufreaks/commits/plugin-tag/master}} | {{rss>http://github.com/feeds/dokufreaks/commits/plugin-tag/master}} | ||
| + | |||
| ===== FAQ ===== | ===== FAQ ===== | ||
| Line 96: | Line 95: | ||
| linked here : [[http://github.com/dokufreaks/plugin-tag/issues|Bug tracker]]. | linked here : [[http://github.com/dokufreaks/plugin-tag/issues|Bug tracker]]. | ||
| + | ==== Tag-Index ==== | ||
| + | |||
| + | Is it possible to show the page-names instead of the first sites header in the list for a specific tag? Yes it is, but you need to hack the code: see e.g. http://forum.dokuwiki.org/post/19075 or related section below: "Show page name not working". Maybe this can be fixed in a furter release? | ||
| ==== Limit tag list by namespace ==== | ==== Limit tag list by namespace ==== | ||
| It would be an important feature to be able to make a list of pages containing specific tag **limited to** specific namespace, e.g. listing pages tagged "''pizza''" from namespace "''restaurants''" (while not listing those from "''recipes''"). | It would be an important feature to be able to make a list of pages containing specific tag **limited to** specific namespace, e.g. listing pages tagged "''pizza''" from namespace "''restaurants''" (while not listing those from "''recipes''"). | ||
| - | ==== another feature request for easier tag entry ==== | + | ==== Another feature request for easier tag entry ==== |
| A plugin to make tag entry easier would be great. I checked out tagentry plugin, which puts checkboxes under the edit form to add tags, but once you're over a few dozen tags, this is cumbersome. A better tagentry solution might be, for instance, auto-complete in a tag entry form or input box. | A plugin to make tag entry easier would be great. I checked out tagentry plugin, which puts checkboxes under the edit form to add tags, but once you're over a few dozen tags, this is cumbersome. A better tagentry solution might be, for instance, auto-complete in a tag entry form or input box. | ||
| + | |||
| + | ==== The URL has two slashes ==== | ||
| + | Hi, how can I fix this http://www.tracesoftwarereview.com//doku.php/tag/isharesoft?do=showtag&tag=isharesoft | ||
| + | there are two slashes. | ||
| + | ==== Show page name not working ==== | ||
| - | ==== show page name not working ==== | ||
| I tried to show a tag with their pagenames but first headline, but failed. | I tried to show a tag with their pagenames but first headline, but failed. | ||
| I found out there is a if statement has to be remove. | I found out there is a if statement has to be remove. | ||
| Line 125: | Line 131: | ||
| + | === I have the same problem === | ||
| + | |||
| + | I first tried configuring it by setting the appropriate pagelist flag: | ||
| + | <code> | ||
| + | $conf['pagelist_flags'] = 'table,nofirsthl,nouser'; // formatting options for the page list plugin | ||
| + | </code> | ||
| + | However it did not work (changing the list to table and adding nouser did work so I presume I formatted the options correctly). | ||
| + | |||
| + | While hoping this will be fixed or perhaps an explanation of the proper configuration for this issue will be available at some point by some kind person :) | ||
| + | |||
| + | The changes suggested above seems to be for an older version of the code, I did this hack to avoid the issue for now. | ||
| + | |||
| + | In helper.php line 169, replaced: | ||
| + | <code> | ||
| + | $title = $meta['title']; | ||
| + | </code> | ||
| + | with: | ||
| + | <code> | ||
| + | $title = $meta['page']; | ||
| + | </code> | ||
| ==== Blockword ==== | ==== Blockword ==== | ||
| - | If a tag name begins with a blockword (eg. //and_there_was_light//) , the ''{''''{topic>}''''}'' listing for this tag is empty! (DokuWiki darcs devel (2007-01-16) + tag plugin 2.1.2 (2007-01-12) ) | + | If a tag name begins with a blockword (e.g. //and_there_was_light//) , the ''{''''{topic>}''''}'' listing for this tag is empty! (DokuWiki darcs devel (2007-01-16) + tag plugin 2.1.2 (2007-01-12) ) |
| proposed fix: | proposed fix: | ||
| Line 168: | Line 194: | ||
| It would be great if tags line would embed into page template (outside the content). Otherwise the "Edit" button (for example) can appear below tags line and it looks like one should edit not section but tags. --- //[[s-andy@in.if.ua|Andriy Lesyuk]] 2009/04/04 01:04// | It would be great if tags line would embed into page template (outside the content). Otherwise the "Edit" button (for example) can appear below tags line and it looks like one should edit not section but tags. --- //[[s-andy@in.if.ua|Andriy Lesyuk]] 2009/04/04 01:04// | ||
| + | |||
| + | Agreed. This is confusing. --- //clayton carter 2010/03/18// | ||
| ==== Generate a list of all tags ==== | ==== Generate a list of all tags ==== | ||
| Line 184: | Line 212: | ||
| Hi. It'll be great if we can use tag directly in the text, "inline". I edited the CSS but I can't make the tag appear within the <p></p> of wiki text. | Hi. It'll be great if we can use tag directly in the text, "inline". I edited the CSS but I can't make the tag appear within the <p></p> of wiki text. | ||
| - | Any way to use a tag directly in a text ? | + | Any way to use a tag directly in a text? |
| For example: | For example: | ||
| Line 196: | Line 224: | ||
| This must be able to be specified many times on a page. This will be a natural way of specifying tags/keywords... | This must be able to be specified many times on a page. This will be a natural way of specifying tags/keywords... | ||
| + | |||
| + | >How about using '[[:interwiki]]' mechanism? You can use a syntax of **%%[[tag>XXX]]%%** by adding a line to conf/interwiki.conf like this. | ||
| + | tag http://your.domain/doku.php?id=tag: | ||
| + | #or, nice URL | ||
| + | tag http://your.domain/tag/ | ||
| + | > --- //[[ikuo_obataya@symplus.com|iobataya]] 2010/01/28 04:06// | ||
| ==== Another feature requests: ==== | ==== Another feature requests: ==== | ||
| Line 205: | Line 239: | ||
| Thank you very much in advance for your attention and have a good day. Olivier | Thank you very much in advance for your attention and have a good day. Olivier | ||
| + | > Maybe handy to follow the request at the start of this [[#discussion|section]] and report the requests.. | ||
| ==== Relative tag links ==== | ==== Relative tag links ==== | ||
| Line 356: | Line 391: | ||
| > --- Vovanium <doci@vovanius.dyndns.org> | > --- Vovanium <doci@vovanius.dyndns.org> | ||
| + | Same patch for cloud plugin | ||
| + | <code> | ||
| + | --- ./syntax.php.old 2009-09-12 16:07:39.000000000 +0400 | ||
| + | +++ ./syntax.php 2010-04-22 18:22:51.000000000 +0400 | ||
| + | @@ -80,6 +80,7 @@ | ||
| + | $name = $word; | ||
| + | if ($type == 'tag') { | ||
| + | $id = $word; | ||
| + | + $oid = $id; // just save original tag name | ||
| + | resolve_pageID($tag->namespace, $id, $exists); | ||
| + | if($exists) { | ||
| + | $link = wl($id); | ||
| + | @@ -87,7 +88,7 @@ | ||
| + | $name = p_get_first_heading($id, false); | ||
| + | } | ||
| + | } else { | ||
| + | - $link = wl($id, array('do'=>'showtag', 'tag'=>noNS($id))); | ||
| + | + $link = wl($id, array('do'=>'showtag', 'tag'=>$oid)); | ||
| + | } | ||
| + | $title = $id; | ||
| + | $class .= ($exists ? '_tag1' : '_tag2'); | ||
| + | |||
| + | </code> | ||
| + | >Denis <linvinus@gmail.com > | ||
| ==== Get list of tags ==== | ==== Get list of tags ==== | ||
| Line 379: | Line 438: | ||
| DokuWiki uses two CSS classes for non existent and existent pages: wikilink1 and wikilink2. The tab plugin do not use wikilink2 in my installation. Is there anyone else with this problem and how I can solve this? I get the newest version and rebuild the index, but the problem still exists. Please email me for any solution. Thanks for help! --- //[[sokrates013@googlemail.com|Nadir]] 2008/10/05 16:38// | DokuWiki uses two CSS classes for non existent and existent pages: wikilink1 and wikilink2. The tab plugin do not use wikilink2 in my installation. Is there anyone else with this problem and how I can solve this? I get the newest version and rebuild the index, but the problem still exists. Please email me for any solution. Thanks for help! --- //[[sokrates013@googlemail.com|Nadir]] 2008/10/05 16:38// | ||
| - | |||
| ==== Orphan tag entries not disappearing after index rebuild ==== | ==== Orphan tag entries not disappearing after index rebuild ==== | ||
| - | In my tag cloud I keep getting a tag that just won't disappear. The tag is in brackets [tag] which is also strange. Clicking on the tag gets you to a page that says "Nothing found". Rebuilding the index does not help. There also is no tag.idx file anywhere in my dokuwiki stack. Can anybody help? | + | In my tag cloud I keep getting a tag that just won't disappear. The tag is in brackets [tag] which is also strange. Clicking on the tag gets you to a page that says "Nothing found". Rebuilding the index does not help. There also is no tag.idx file anywhere in my DokuWiki stack. Can anybody help? |
| - | ===== Language Files ===== | ||
| + | ==== RSS feed by tag ==== | ||
| + | It would be interesting to enable the RSS generating directly from this plugin by selecting tag or tag namespace. Something like: | ||
| + | {{rsstopic>ns:tag}} | ||
| + | {{rsstopic>ns:*}} | ||
| + | {{rsstopic>*:tag}} | ||
| + | ===== Language Files ===== | ||