DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pglist

PGList Plugin

Compatible with DokuWiki

  • 2024-02-06 "Kaos" unknown
  • 2023-04-04 "Jack Jackrum" unknown
  • 2022-07-31 "Igor" unknown
  • 2020-07-29 "Hogfather" yes

plugin List a pages or directories inside the current namespace or selected namespace.

Last updated on
2020-11-15
Provides
Syntax
Repository
Source

Similar to catlist, dir, nspages, pagelist, subpages

Tagged with file, listing

Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Usage

List a pages or directories inside the current namespace or selected namespace, but exclude the current page that have this list or you can exclude the start page. pglist also when list the directories, it checks if this directory has “start” page if no, it is will not listed, if exists it listed by the title of the start page in this directory. Also directories always sorted at the top of the list.

I prefer to use useheading = 1 1) in your config to get a good title.

Note: When use “dirs”, it list directories only that have start.txt page and list the title of this page. If you like to list it even not have start.txt you need to add “any” to your parameters.

Syntax

Use this syntax

{{pglist>selected_namespace files dirs me nostart fsort dsort}}

Be sure there is NO space before namespace

If the namespace started with / it will takes as full name space, if it not started with / it will be relative to current namespace that the page exists in it for example: current page is dev/start

/dev/components 

is same with

components 
dev/components  (bad)

it is point to “dev/dev/components”

Examples

  {{pglist>}}  

List all files inside the current directory, only files and exclude the current page.

  {{pglist>my_namespace}}  

List all files inside the selected directory/namespace, only files and exclude the current page.

  {{pglist>/my_namespace}}  

Same, List all files inside the selected directory/namespace, only files and exclude the current page. But it take the full path to namespace, i meant from the root.

  {{pglist> dirs}}  

List all directories inside the current directory, only directories and exclude the current page.

  {{pglist> files dirs}}  

List all files and directories inside the current directory.

  {{pglist> files dirs me}}  

List all files and directories inside the current directory, with the current page that have this list, it is do not exclude me.

  {{pglist> files dirs nostart}}  

List all files and directories inside the current directory, exclude the current page and the start page also.

plugin/pglist.txt · Last modified: 2020-11-15 18:16 by zaher

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