plugin:pagelist
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:pagelist [2017-09-11 03:52] – nosbig | plugin:pagelist [2023-08-27 23:50] (current) – version upped andi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : freaks@dokuwiki.org | email : freaks@dokuwiki.org | ||
type : syntax, helper | type : syntax, helper | ||
- | lastupdate : 2017-08-24 | + | lastupdate : 2023-08-27 |
- | compatible : rincewind, adora belle, weatherwax, binky, ponder stibbons, hrun, detritus, Frusterick Manners | + | compatible : Rincewind, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum |
depends | depends | ||
conflicts | conflicts | ||
Line 18: | Line 18: | ||
donationurl: | donationurl: | ||
---- | ---- | ||
+ | |||
+ | > **Update note**: In August 2023 the css styling is changed a bit. The specific styles for each cell are replaced by more general styles. Also all styles, except '' | ||
===== Description ===== | ===== Description ===== | ||
Line 39: | Line 41: | ||
==== Flags ==== | ==== Flags ==== | ||
- | ^ Setting | + | ^ Default |
- | | '' | + | ^ '' |
- | | '' | + | ^ '' |
- | | '' | + | ^ '' |
- | | '' | + | ^ '' |
- | | '' | + | ^ '' |
- | | '' | + | ^ '' |
- | | '' | + | ^ '' |
- | | '' | + | ^ '' |
- | | '' | + | ^ '' |
- | | '' | + | ^ '' |
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ | if only '' | ||
+ | ^ '' | ||
+ | |||
+ | |||
+ | |||
+ | The '' | ||
==== Example ==== | ==== Example ==== | ||
Line 64: | Line 74: | ||
^ '' | ^ '' | ||
^ '' | ^ '' | ||
+ | ^ '' | ||
^ '' | ^ '' | ||
^ '' | ^ '' | ||
^ '' | ^ '' | ||
+ | ^ '' | ||
^ '' | ^ '' | ||
- | ^ '' | + | ^ '' |
^ '' | ^ '' | ||
+ | ^ '' | ||
^ '' | ^ '' | ||
- | ^ '' | + | ^ '' |
===== Helper Plugin ===== | ===== Helper Plugin ===== | ||
Line 78: | Line 91: | ||
<code php> | <code php> | ||
- | | + | $pages = [ |
- | | + | |
- | | + | |
- | ); | + | ]; |
- | $pagelist =& plugin_load(' | + | $pagelist = $this-> |
- | if (!$pagelist) return false; // failed to load plugin | + | if (!$pagelist) return false; // failed to load plugin |
- | $pagelist-> | + | $pagelist-> |
- | foreach ($pages as $page){ | + | foreach ($pages as $page){ |
$pagelist-> | $pagelist-> | ||
- | | + | } |
- | $renderer-> | + | $renderer-> |
</ | </ | ||
Line 96: | Line 109: | ||
$pagelist-> | $pagelist-> | ||
</ | </ | ||
+ | |||
+ | For more details, see [[plugin: | ||
===== Bugs / Feature Requests ===== | ===== Bugs / Feature Requests ===== | ||
Line 101: | Line 116: | ||
Please report bugs or feature requests at the [[https:// | Please report bugs or feature requests at the [[https:// | ||
- | ===== Further Resources ===== | ||
- | * [[https:// | ||
- | * [[https:// | ||
===== Changes ===== | ===== Changes ===== | ||
Line 111: | Line 123: | ||
===== Localization ===== | ===== Localization ===== | ||
+ | Submit translation via the translation tool: https:// | ||
- | ===== Discussion ===== | ||
- | |||
- | This is a place for general plugin discussion. **Please submit bugs and feature requests to bug tracker linked on this page**. | ||
- | |||
- | |||
- | ==== Suppressing the new thread | ||
- | |||
- | Is it correct that I need to comment out the renderer if I want to prevent a " | ||
- | < | ||
- | // show form to start a new discussion thread? | ||
- | if ($perm_create && ($this-> | ||
- | // $renderer-> | ||
- | return true; | ||
- | |||
- | </ | ||
- | You should set the configuration option '' | ||
- | --- //Phil 2010/01/29 16:05// | ||
- | |||
- | |||
- | ==== How to add two columns? | ||
- | |||
- | I want to add two columns for a plugin. But the function addColumn only support one column for one plugin. How can I do this? | ||
- | |||
- | ---- | ||
- | |||
- | need the same, very important!! // --- alfiox 2010-12-22 // | ||
- | |||
- | ---- | ||
- | |||
- | Also need. If the " | ||
- | |||
- | ---- | ||
- | |||
- | That is quite complicated with the current layout of the plugin. The data storage isn't built to fetch multiple columns of another plugin. | ||
- | |||
- | > If the pagelist plugin (or more important for my needs, teh tag plugin, which I think uses the same engine) had an option to return an actual list rather than a table that contains cells which are rendered to look like a list, the problem could then be solved by passing this plugin' | ||
- | |||
- | >> I went through the code. Inserting between 4 and 5 if statements that cause it to use an unordered list when $this-> | ||
- | >> I commented on the open bug on the tracker with explanation and pastebin | ||
- | >> https:// | ||
- | >>> | ||
- | |||
- | ==== Showing "Edit summary" | ||
- | |||
- | How to show the "edit summary" | ||
- | |||
- | > [[plugin: | ||
- | |||
- | ==== pagelist: howto specify an additional argument for " | ||
- | |||
- | I would like to use pagelist together with " | ||
- | |||
- | |||
- | ==== Pick up descriptions from Description Plugin ==== | ||
- | |||
- | If you want to pick up the Meta-fields from the Description Plugin you have to patch this function in the pagelist-plugin: | ||
- | |||
- | < | ||
- | function _descCell() { | ||
- | /*Begin patch to get meta data from plugin description */ | ||
- | $desc = $this-> | ||
- | |||
- | if (!$desc) | ||
- | | ||
- | { /* end patch */ | ||
- | if (array_key_exists(' | ||
- | | ||
- | } elseif (strlen($this-> | ||
- | // This condition will become true, when a page-description is given | ||
- | // inside the syntax-block | ||
- | $desc = $this-> | ||
- | } else { | ||
- | $desc = $this-> | ||
- | } | ||
- | | ||
- | } //close patch | ||
- | | ||
- | $max = $this-> | ||
- | if (($max > 1) && (utf8_strlen($desc) > $max)) $desc = utf8_substr($desc, | ||
- | return $this-> | ||
- | } | ||
- | </ | ||
- | |||
- | --- [[user> | ||
- | |||
- | ==== pagelist: howto show parent namespace ==== | ||
- | |||
- | I am using pagetag to display a list of pages that contain a given tag. As now, only the title of the page is displayed: additionally I want to display (at least) the first level containing namespace (ie: the parent). How do I do that ? | ||
- | |||
- | I have updated https:// | ||
- | |||
- | [[user> | ||
- | |||
- | I made additions to the plugin for my personal use, maybe it can help you. | ||
- | |||
- | The additions are: | ||
- | * Displays the **parent namespace** (with the title or name of the page) (flag: **parentns** or noparentns) | ||
- | * **French translation** | ||
- | |||
- | I do translations for English and French only. All changes are placed after the following pattern coment : | ||
- | < | ||
- | |||
- | **link to source** : [[https:// | ||
- | |||
- | [[user> | ||
- | === comments not updating === | ||
- | I am unsure if there is a conflict. I have pagelist control settings to how i want, however the comments don't seem to want to update when a comment is added. | ||
- | === omg === | ||
- | omg, devs | ||
- | no demo? no screenshots? | ||
- | 2016... |
plugin/pagelist.1505094741.txt.gz · Last modified: 2017-09-11 03:52 by nosbig