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
plugin:tag [2023-04-14 19:07] – [Demo / Screenshots] Aleksandrplugin:tag [2024-01-19 23:43] (current) – [Demo / Screenshots] Aleksandr
Line 6: Line 6:
 email      : freaks@dokuwiki.org email      : freaks@dokuwiki.org
 type       : syntax, action, helper type       : syntax, action, helper
-lastupdate : 2022-10-02+lastupdate : 2023-10-17
 compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, !Greebo, Hogfather, Igor, Jack Jackrum compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, !Greebo, Hogfather, Igor, Jack Jackrum
 depends    : pagelist depends    : pagelist
Line 117: Line 117:
  
 ^ ''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 ''%%{{topic>...}}%%'' to display the list of tags on such a page for example. The default value of ''namespace'' is: ''tag'' | ^ ''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 ''%%{{topic>...}}%%'' to display the list of tags on such a page for example. The default value of ''namespace'' is: ''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'' |+^ ''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'' to sort pages before namespaces and ''title'' |
 ^ ''sortorder'' | Sort order of the topic overview (ascending or descending) | ^ ''sortorder'' | Sort order of the topic overview (ascending or descending) |
 ^ ''pagelist_flags'' | Comma separated [[plugin:pagelist#Flags]] of the [[plugin:pagelist]] plugin which is used to display the topic overview | ^ ''pagelist_flags'' | Comma separated [[plugin:pagelist#Flags]] of the [[plugin:pagelist]] plugin which is used to display the topic overview |
Line 129: Line 129:
  
 ===== Demo / Screenshots ===== ===== Demo / Screenshots =====
 +Topic listing:
 +{{ https://trello.com/1/cards/64398723319f190ba6cb5235/attachments/6439875fa2fed84e68e5c06e/download/tag_overview.png?recache |Tag overview}}
  
-{{ https://trello.com/1/cards/64398723319f190ba6cb5235/attachments/6439875fa2fed84e68e5c06e/download/tag_overview.png?283x205&recache |Tag overview}} +Tags
- +{{ https://trello.com/1/cards/64398723319f190ba6cb5235/attachments/64398760e3c8fe34a7786c62/download/tag_page.png?recache |A page with tags}}
-{{ https://trello.com/1/cards/64398723319f190ba6cb5235/attachments/64398760e3c8fe34a7786c62/download/tag_page.png?200x58&recache |A page with tags}}+
  
 ===== Changes ===== ===== Changes =====
Line 189: Line 190:
 <code> <code>
 {{tag>"tag with multiple words"}} {{tag>"tag with multiple words"}}
 +</code>
 +
 +==== How to make the tag namespace breadcrumb still work ====
 +
 +Let's use one of the example websites.
 +
 +If you go to https://wiki.psiconauti.net/tag/esperienze?do=showtag&tag=esperienze and then click in the breadcrumb "esperienze" you go to https://wiki.psiconauti.net/tag/esperienze , an empty page.
 +To make your pages inside the tag namespace always go to the tag list, add this to the beginning of your /.htaccess
 +
 +This also allows you to keep your start page to add there, for example, the list of tags
 +If your [[config:startpage|start page]] is not "start", change it to the one you use
 +
 +<code>
 +RewriteCond %{REQUEST_URI}            !tag:start
 +RewriteRule ^tag.([\-_a-zA-Z0-9\ ]*)$  tag:$1?do=showtag&tag=$1
 </code> </code>
  
plugin/tag.1681492063.txt.gz · Last modified: 2023-04-14 19:07 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