plugin:tagentry
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:tagentry [2020-06-06 03:51] – trailjeep | plugin:tagentry [2020-06-06 03:56] – trailjeep | ||
---|---|---|---|
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 | ||
Line 17: | Line 17: | ||
---- | ---- | ||
- | The // | + | The // |
===== Previous Authors ===== | ===== Previous Authors ===== | ||
Line 36: | Line 36: | ||
Moved to [[plugin: | Moved to [[plugin: | ||
+ | ===== Discussion ===== | ||
- | ===== Discussions ===== | + | Moved to [[plugin: |
- | + | ||
- | > 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 | + | |
- | + | ||
- | <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.txt · Last modified: 2023-10-30 23:10 by Klap-in