DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pagelist

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:pagelist [2023-08-27 12:54] – [Configuration] Klap-inplugin:pagelist [2024-05-04 11:07] (current) – old revision restored (2023-08-27 23:50) Aleksandr
Line 6: Line 6:
 email      : freaks@dokuwiki.org email      : freaks@dokuwiki.org
 type       : syntax, helper type       : syntax, helper
-lastupdate : 2023-08-26+lastupdate : 2023-08-27
 compatible : Rincewind, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum compatible : Rincewind, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Frusterick Manners, Greebo, Hogfather, Igor, Jack Jackrum
 depends    :  depends    : 
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 ''simplelist'', got an additional class ''plgn__pglist'' to target better this plugin with your own styling.
  
 ===== Description ===== ===== Description =====
Line 54: Line 56:
 ^                 | if only ''sort'' is set it will sorts by ''id''  ^ ''sortby=<property>''                  | sort by the requested property. Info should be provided with ''addPage()'' or some info can be retrieved form metadata.     | ''sortby''                                     | ^                 | if only ''sort'' is set it will sorts by ''id''  ^ ''sortby=<property>''                  | sort by the requested property. Info should be provided with ''addPage()'' or some info can be retrieved form metadata.     | ''sortby''                                     |
 ^ ''limit=0''     | list all given entries                           ^ ''limit=<number>''                     | Limits the number of entries to <number>. 0 = list all given items.                                                         | no setting                                     | ^ ''limit=0''     | list all given entries                           ^ ''limit=<number>''                     | Limits the number of entries to <number>. 0 = list all given items.                                                         | no setting                                     |
 +
 +
 +
 +The ''sortby=<property>'' flag uses the info directly from the data supplied (e.g. if used in another plugin), or tries to compile or retrieve it from metadata. It sorts default by ''id''. Next to the column names as used internally in the provided data, you can use ''pagename'' for using only the pagename part of the ''id'' thus ignoring the namespace part, or ''ns'' for sorting pages before equal named namespaces. ''title'' uses the first headline of a page. Other property names are: ''date'', ''user'', ''desc'', ''summary'', and if the respectively plugin is available: ''comments'', ''linkbacks'', ''tags'' and ''image''. If called in other plugins these can eventually add their own columns as well. 
  
 ==== Example ==== ==== Example ====
Line 79: Line 85:
 ^ ''sort''     | Sorts the pages alphabetically by pagename | ^ ''sort''     | Sorts the pages alphabetically by pagename |
 ^ ''sortby''   | Sort the page by the given property, e.g. ''id'', ''pagename'', ''ns'', ''title'', ''date'', ''desc'', ''user'' etc or columns from plugins | ^ ''sortby''   | Sort the page by the given property, e.g. ''id'', ''pagename'', ''ns'', ''title'', ''date'', ''desc'', ''user'' etc or columns from plugins |
 +
 ===== Helper Plugin ===== ===== Helper Plugin =====
  
plugin/pagelist.1693133699.txt.gz · Last modified: 2023-08-27 12:54 by Klap-in

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki