====== tagentry plugin ====== ---- plugin ---- description: assign tags using checkboxes author : Robin Gareus email : robin@gareus.org type : action lastupdate : 2009-09-12 compatible : 2008-05-05, and newer depends : tag conflicts : similar : tags : navigation, tags, editing, javascript downloadurl: http://mir.dnsalias.com/_media/oss/dokutagentry/tagentry.zip ---- The //tagentry// plugin displays a set of //tag-name checkboxes// just below the edit form and automatically adds or modifies %%{{tag>}}%% in the wiki-text using JavaScript when a checkbox is activated. see [[http://mir.dnsalias.com/wiki/tagentry]] for further information. ===== Download and installation ===== Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually. ^ Download (latest version)| [[http://mir.dnsalias.com/_media/oss/dokutagentry/tagentry.zip]] | ===== Bugs ===== ==== "+" or "-" appears before tags ==== When we use ''%%{{topic>}}%%'' syntax with "+" or "-" before tags in order to select results, labels of checkboxes appears with this "+" or "-", as if they were part of the tag (although this is not the case). I suppose it is because of ''%%{{topic>}}%%'' accept parameters in its syntax. --- //[[ner0lph+antispam@gmail.com|Ner0lph]] 2010-02-11 16:59 (Europe/Paris timezone)// ==== Tagentry checkboxes vanished when using the Dokuwiki "Anteater" Release 2010-11-07 ==== Just like the plugin was no more active in the edit page. > Had the same problem... Here is a quick and dirty fix; someone with more experience can probably provide a better solution. In ''lib/plugins/tagentry/action.php'' comment out the following in the function ''handle_editform_output'': if ( !empty($event->data->_hidden['prefix']) || !empty($event->data->_hidden['suffix'])) return; if ($event->data->findElementByType('wikitext')===false) return > //tmul - 2010-11-18// >> Thanks, the fix worked for me, using Anteater. If I experience any inconvenience, I'll post them. >> //2011-03-23// >>> Thanks tmul. >>> This fix worked also for me with the "Rincewind" release. >>> //BidiX - 2011-06-14// ===== Discussions ===== > it doesn't work with Opera — tested with 9.64 > 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 ''action.php'' of the plugin replace the three following lines: $rv.='
'; $rv.='
'; $rv.='
'; > with the following $rv.='
'; if (!$options['tagboxtable']) $rv.='
'; $rv.='
'; $rv.='
'; if ($options['tagboxtable']) { $rv.=''; $rv.=''; $i=0; $ls=0; $lsmax=0; natcasesort($alltags); foreach ($alltags as $t) { if (is_array($options['blacklist']) && $this->_in_casearray($t, $options['blacklist'])) continue; $i++; $ls = strlen($t); if ($ls > $lsmax) $lsmax=$ls; } For ($j=1;$j<=$options['tablerowcnt'];$j++) { $rv.=''; } $rv.=''; $rv.=''; } else { $rv.='
'; } **__Note:__** The title **Liste des tags** is in french but can be changed by whatever you want. Take care to use the   "no-break space" characters to replace your space characters in the title. --------------------------------- \\ I tried this edit, but my website wouldn't load when I made the change. Once I reverted back to the original code, my website ran normally. //-JC// ----
'; if ($j == 1) $rv.="Liste des tags ".str_repeat(" ",$lsmax-8); if ($j > 1) $rv.=str_repeat("_",$lsmax+1); $rv.='