plugin:tagentry
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:tagentry [2020-06-06 03:45] – trailjeep | plugin:tagentry [2023-10-30 23:10] (current) – Klap-in | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description : Assign tags using checkboxes | + | description : Assign tags by clicking from list |
author | author | ||
email : trailjeep@gmail.com | email : trailjeep@gmail.com | ||
type : action | type : action | ||
lastupdate | lastupdate | ||
- | compatible | + | compatible |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
tags : navigation, tags, editing, javascript | tags : navigation, tags, editing, javascript | ||
- | downloadurl : https:// | + | downloadurl : https:// |
- | sourcerepo | + | sourcerepo |
- | bugtracker | + | bugtracker |
---- | ---- | ||
- | The // | + | The // |
===== Previous Authors ===== | ===== Previous Authors ===== | ||
Line 26: | Line 26: | ||
===== Changes ===== | ===== Changes ===== | ||
- | {{rss> | + | {{rss> |
===== Download and installation ===== | ===== Download and installation ===== | ||
Search and install the plugin using the [[plugin: | Search and install the plugin using the [[plugin: | ||
- | |||
- | ===== Author information ===== | ||
- | |||
- | I am not the author of this plugin but [[robin@gareus.org|Robin Gareus]] yes. I improve or correct this plugin during my spare time. Fixing an error or adding a new function takes time (development, | ||
- | |||
- | Thank you for your understanding ;-). | ||
- | |||
- | ---- | ||
- | As of 2019/10/17, [[https:// | ||
- | |||
- | ===== Changelogs ===== | ||
- | |||
- | * [[https:// | ||
- | * Add code to repository | ||
- | * Add previous code fixes | ||
- | * Optimize & fix CSS | ||
- | * Hide checkboxes - simply click on tag to add. | ||
- | * [[https:// | ||
- | * Fix PHP 7 deprecated [[# | ||
- | * [[https:// | ||
- | * Update for **Dokuwiki 2017-02-19 " | ||
- | * Fix the following bugs : [[# | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | |||
- | |||
- | |||
===== Bugs ===== | ===== Bugs ===== | ||
- | ==== " | + | Moved to [[plugin: |
- | When we use '' | + | ===== Discussion ===== |
- | ==== Tagentry checkboxes vanished when using the Dokuwiki " | + | Moved to [[plugin: |
- | + | ||
- | Just like the plugin was no more active in the edit page. | + | |
- | + | ||
- | > Had the same problem... | + | |
- | + | ||
- | if ( | + | |
- | || !empty($event-> | + | |
- | if ($event-> | + | |
- | + | ||
- | > //tmul - 2010-11-18// | + | |
- | + | ||
- | >> Thanks, the fix worked for me, using Anteater. If I experience any inconvenience, | + | |
- | >> // | + | |
- | + | ||
- | + | ||
- | >>> | + | |
- | >>> | + | |
- | >>> | + | |
- | + | ||
- | >>>> | + | |
- | + | ||
- | >>>>> | + | |
- | >>>>> | + | |
- | + | ||
- | >>>>>> | + | |
- | >>>>>> | + | |
- | + | ||
- | >>>>>>> | + | |
- | >>>>>>> | + | |
- | + | ||
- | >>>>>>>> | + | |
- | + | ||
- | if ($this-> | + | |
- | $alltags=array_map(' | + | |
- | } else { | + | |
- | $alltags=$this-> | + | |
- | } | + | |
- | + | ||
- | >>>>>>>> | + | |
- | >>>>>>>> | + | |
- | >>>>>>>> | + | |
- | + | ||
- | >>>>>>>>> | + | |
- | >>>>>>>>> | + | |
- | >>>>>>>>> | + | |
- | + | ||
- | >>>>>>>>> | + | |
- | >>>>>>>>> | + | |
- | + | ||
- | >>>>>>>>> | + | |
- | < | + | |
- | ./ | + | |
- | +++ ./ | + | |
- | @@ -55,7 +55,7 @@ | + | |
- | $pos = $event-> | + | |
- | | + | |
- | #echo " | + | |
- | - if ( | + | |
- | + if ( | + | |
- | || !empty($event-> | + | |
- | if ($event-> | + | |
- | | + | |
- | @@ -72,7 +72,7 @@ | + | |
- | } | + | |
- | + | ||
- | if ($this-> | + | |
- | - $alltags=$this-> | + | |
- | + $alltags=array_map(' | + | |
- | } else { | + | |
- | | + | |
- | } | + | |
- | </ | + | |
- | --- [[user> | + | |
- | + | ||
- | >>>>>>>>> | + | |
- | + | ||
- | ==== PHP 7.0 Issue ==== | + | |
- | + | ||
- | Neither the old nor the new version of this plugins works with Dokuwiki 2017-02-19 “Frusterick Manners” on PHP 7.0. Error shown is this: | + | |
- | < | + | |
- | Got error 'PHP message: PHP Fatal error: | + | |
- | Call to undefined function split() in | + | |
- | / | + | |
- | ... | + | |
- | </ | + | |
- | + | ||
- | I have no time to look into the code and fix it. \\ | + | |
- | JohnG 2017/09/13 16:30 CET | + | |
- | + | ||
- | Quick search shows that split() has been deprecated and removed from 7.0. It was replaced by preg_split() and explode(). The line in question is line 111 of action.php. Although making this change alone has not fixed the issue for me.\\ | + | |
- | EvanC 2017/09/14 15:15 EST | + | |
- | + | ||
- | Seems to work for me. I replaced the calls to split() with explode(). There are two calls, on line 111 and 125.\\ | + | |
- | nuess0r 2018/01/01 16:28 CET | + | |
- | + | ||
- | ==== Plugin Installation Error - " | + | |
- | Upon attempting to install this plugin | + | |
- | --- [[user> | + | |
- | + | ||
- | + | ||
- | ---- | + | |
- | + | ||
- | + | ||
- | ===== Discussions ===== | + | |
- | + | ||
- | > it doesn' | + | |
- | > JavaScript is enabled and other scripts (e.g. show/hide contents) is working | + | |
- | + | ||
- | --------------------------------- | + | |
- | \\ | + | |
- | ==== Tag tables formatting ===== | + | |
- | // Phi - 2010/08/25 // | + | |
- | + | ||
- | > Good plugin as far as I have used it. But the screen formatting was not very exciting. | + | |
- | > The very simple / basic modification below is done in order to get a better formatting of the XML tables of tags: | + | |
- | + | ||
- | * uniform width for the columns of the table | + | |
- | * one line for each box + tag label item. | + | |
- | + | ||
- | > Around line 250 in '' | + | |
- | <code php> | + | |
- | $rv.='< | + | |
- | $rv.=' < | + | |
- | $rv.=' <div class=" | + | |
- | </ | + | |
- | + | ||
- | > with the following | + | |
- | <code php> | + | |
- | $rv.='< | + | |
- | if (!$options[' | + | |
- | $rv.=' < | + | |
- | $rv.=' <div class=" | + | |
- | if ($options[' | + | |
- | | + | |
- | | + | |
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | if (is_array($options[' | + | |
- | && $this-> | + | |
- | continue; | + | |
- | $i++; | + | |
- | $ls = strlen($t); | + | |
- | if ($ls > $lsmax) $lsmax=$ls; | + | |
- | } | + | |
- | + | ||
- | For ($j=1; | + | |
- | $rv.='< | + | |
- | if ($j == 1) $rv.=" | + | |
- | if ($j > 1) $rv.=str_repeat(" | + | |
- | $rv.='</ | + | |
- | } | + | |
- | | + | |
- | | + | |
- | } | + | |
- | else { | + | |
- | | + | |
- | } | + | |
- | + | ||
- | </ | + | |
- | + | ||
- | **__Note: | + | |
- | --------------------------------- | + | |
- | \\ | + | |
- | I tried this edit, but my website wouldn' | + | |
- | + | ||
- | ---- | + | |
- | + | ||
- | ==== Use Heading of tag page ==== | + | |
- | + | ||
- | When the tag entry is a page in the namesapce **tag** (default [[plugin: | + | |
- | + | ||
- | <code php> | + | |
- | /** | + | |
- | * Return Header title or tag name | + | |
- | * @param $tagname The name of tag without namespace | + | |
- | * @return Title of the tag page or tag name formatted | + | |
- | */ | + | |
- | function _getTagTitle($tagname){ | + | |
- | global $conf; | + | |
- | if( $conf[' | + | |
- | $tagplugin = plugin_load(' | + | |
- | if ( plugin_isdisabled(' | + | |
- | // | + | |
- | return $this-> | + | |
- | } | + | |
- | + | ||
- | $id = $tagname; | + | |
- | $exist = false; | + | |
- | resolve_pageID($tagplugin-> | + | |
- | if( $exist ){ | + | |
- | return p_get_first_heading($id, | + | |
- | } | + | |
- | } | + | |
- | return $this-> | + | |
- | } | + | |
- | + | ||
- | // Replace this line (in function _format_tags) | + | |
- | $rv.=' /> ' | + | |
- | // By this | + | |
- | $rv.=' /> ' | + | |
- | </ | + | |
- | + | ||
- | --- [[user> | + | |
- | + | ||
- | ---- | + | |
plugin/tagentry.1591407940.txt.gz · Last modified: 2020-06-06 03:45 by trailjeep