DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pglist

PGList Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" yes
  • 2014-09-29 "Hrun" unknown

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

Last updated on
2013-07-20
Provides
Syntax
Repository
Source

Similar to dir, nspages, pagelist

Tagged with file, listing

Installation

Download the archive and unpack it into <dokuwiki>/lib/plugins.

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. 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: 2015-10-04 08:03 by torpedo