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 00:57] – [Table] 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 68: Line 74:
 ^ ''style'' | List style (default, table, table/list, simplelist) | ^ ''style'' | List style (default, table, table/list, simplelist) |
 ^ ''showheader'' | Show table header | ^ ''showheader'' | Show table header |
 +^ ''showfirsthl''| Show the first headline instead of the page name |
 ^ ''showdate'' | Shows/hides the date column (hide, creation date, modification date) | ^ ''showdate'' | Shows/hides the date column (hide, creation date, modification date) |
 ^ ''showuser'' | Shows/hides the user column (hide, creator, contributors) | ^ ''showuser'' | Shows/hides the user column (hide, creator, contributors) |
 ^ ''showdesc'' | Shows/hides a short description taken from the first paragraph of a page (hide, max. 160 characters, max. 500 characters) | ^ ''showdesc'' | Shows/hides a short description taken from the first paragraph of a page (hide, max. 160 characters, max. 500 characters) |
 +^ ''showdiff'' | Displays a differences column with the diff icon linking to the corresponding diff page for each row |
 ^ ''showcomments'' | Shows/hides comments of a page (requires the [[plugin:discussion]] plugin) | ^ ''showcomments'' | Shows/hides comments of a page (requires the [[plugin:discussion]] plugin) |
 ^ ''showlinkbacks'' | Shows/hides linkbacks of a page (requires the [[plugin:linkback]] plugin) | ^ ''showlinkbacks'' | Shows/hides linkbacks of a page (requires the [[plugin:linkback]] plugin) |
 ^ ''showtags'' | Shows/hides tags of a page (requires the [[plugin:tag]] plugin) | ^ ''showtags'' | Shows/hides tags of a page (requires the [[plugin:tag]] plugin) |
-^ ''sort''     | Sorts the pages alphabetically by pagename | 
-^ ''showdiff'' | Displays a differences column with the diff icon linking to the corresponding diff page for each row | 
 ^ ''showimage'' | Shows/hides the image column (requires the [[pageimage|Pageimage Plugin]]) | ^ ''showimage'' | Shows/hides the image column (requires the [[pageimage|Pageimage Plugin]]) |
 +^ ''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 |
  
 ===== Helper Plugin ===== ===== Helper Plugin =====
plugin/pagelist.1693090679.txt.gz · Last modified: 2023-08-27 00:57 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