plugin:tag
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:tag [2022-08-31 22:09] – [Searchtags] Klap-in | plugin: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-07-02 | + | lastupdate : 2023-10-17 |
- | compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor | + | compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, |
depends | depends | ||
conflicts | conflicts | ||
Line 18: | Line 18: | ||
donationurl: | donationurl: | ||
---- | ---- | ||
- | |||
- | :!: The 2013-02-15 release fixed a security issue (XSS vulnerability), | ||
===== Description ===== | ===== Description ===== | ||
Line 25: | Line 23: | ||
The Tag 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**: | + | |
===== Components ===== | ===== Components ===== | ||
==== Tag ==== | ==== Tag ==== | ||
+ | Add a tag to the page | ||
{{tag> | {{tag> | ||
Line 41: | Line 40: | ||
* with namespaces: '' | * with namespaces: '' | ||
* multiple word tags: '' | * multiple word tags: '' | ||
+ | * '' | ||
Line 84: | Line 84: | ||
==== Count ==== | ==== Count ==== | ||
+ | Shows a list of tags and its number of occurrences. | ||
{{count> | {{count> | ||
- | ^ [tags] | + | ^ [tags] |
- | ^ [namespaces] | + | ^ &[namespaces] |
- | 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 '' | + | 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 '' |
Example: | Example: | ||
Line 96: | Line 97: | ||
* '' | * '' | ||
* '' | * '' | ||
+ | * '' | ||
| | ||
==== Tagpage ==== | ==== Tagpage ==== | ||
+ | Make link to the tag list | ||
| | ||
Line 114: | Line 117: | ||
^ '' | ^ '' | ||
- | ^ '' | + | ^ '' |
^ '' | ^ '' | ||
^ '' | ^ '' | ||
Line 126: | Line 129: | ||
===== Demo / Screenshots ===== | ===== Demo / Screenshots ===== | ||
+ | Topic listing: | ||
+ | {{ https:// | ||
- | {{ http://dump.lupo49.de/tmp/dokuwiki/ | + | Tags: |
- | + | {{ https://trello.com/1/cards/64398723319f190ba6cb5235/attachments/64398760e3c8fe34a7786c62/download/ | |
- | {{ http:// | + | |
===== Changes ===== | ===== Changes ===== | ||
Line 186: | Line 190: | ||
< | < | ||
{{tag>" | {{tag>" | ||
+ | </ | ||
+ | |||
+ | ==== How to make the tag namespace breadcrumb still work ==== | ||
+ | |||
+ | Let's use one of the example websites. | ||
+ | |||
+ | If you go to https:// | ||
+ | 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: | ||
+ | |||
+ | < | ||
+ | RewriteCond %{REQUEST_URI} | ||
+ | RewriteRule ^tag.([\-_a-zA-Z0-9\ ]*)$ tag: | ||
</ | </ | ||
Line 192: | Line 211: | ||
This colors the background of the page to red if the keyword ' | This colors the background of the page to red if the keyword ' | ||
- | <code php> | + | < |
function _handle_keywords(& | function _handle_keywords(& | ||
global $ID; | global $ID; | ||
Line 198: | Line 217: | ||
// Fetch tags for the page; stop proceeding when no tags specified | // Fetch tags for the page; stop proceeding when no tags specified | ||
$tags = p_get_metadata($ID, | $tags = p_get_metadata($ID, | ||
- | if(is_null($tags)) | + | if(is_null($tags)) |
// Replace underscores with blanks | // Replace underscores with blanks | ||
Line 205: | Line 224: | ||
$meta[' | $meta[' | ||
+ | // add extra styling | ||
$t = explode(',', | $t = explode(',', | ||
if(in_array(' | if(in_array(' | ||
Line 329: | Line 349: | ||
> Is it possible to change the word tag used in syntax to something else, like another language < | > Is it possible to change the word tag used in syntax to something else, like another language < | ||
+ | |||
+ | You need to add copy of the existing tag pattern, and modify it to | ||
+ | <code php syntax/ | ||
+ | $this-> | ||
+ | //e.g. Spanish: | ||
+ | $this-> | ||
+ | </ | ||
===== Discussion ===== | ===== Discussion ===== | ||
Line 337: | Line 364: | ||
Something like the example in this post on the user forums? https:// | Something like the example in this post on the user forums? https:// | ||
+ | > No. | ||
==== Collapsible outline of all tags ==== | ==== Collapsible outline of all tags ==== | ||
Line 349: | Line 377: | ||
- | How do I tag a page? Lots of detail about how to display tagged pages, but I cannot find anything about how to tag a page to begin with. | ||
- | |||
- | > You have to type it into the page. Look at the **Components** portion of this page to see what to type. | ||
For __**bugs or feature requests, there is the bug tracker**__ linked here : [[https:// | For __**bugs or feature requests, there is the bug tracker**__ linked here : [[https:// |
plugin/tag.1661976580.txt.gz · Last modified: 2022-08-31 22:09 by Klap-in