DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:pglist

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:pglist [2012-06-25 19:43] – Fix type and grammer zaherplugin:pglist [2020-11-15 18:16] (current) – update compatible zaher
Line 6: Line 6:
 email      : zaherdirkey@yahoo.com  email      : zaherdirkey@yahoo.com 
 type       : syntax type       : syntax
-lastupdate : 2012-06-09 +lastupdate : 2020-11-15 
-compatible : >2009-02-142008-05-05+compatible : DetritusHogfather
 depends    :  depends    : 
 conflicts  conflicts 
Line 13: Line 13:
 tags       : file, listing tags       : file, listing
  
-downloadurl: https://github.com/parmaja/pglist+downloadurl: https://github.com/parmaja/pglist/archive/master.zip
 bugtracker : https://github.com/parmaja/pglist/issues bugtracker : https://github.com/parmaja/pglist/issues
 sourcerepo : https://github.com/parmaja/pglist sourcerepo : https://github.com/parmaja/pglist
 ---- ----
- 
  
 ===== Installation ===== ===== Installation =====
- +Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
-Download the archive and unpack it into ''<dokuwiki>/lib/plugins''+
- +
-Install the plugin using the [[plugin:plugin|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 ===== ===== Usage =====
  
Line 31: Line 26:
 Also directories always sorted at the top of the list. Also directories always sorted at the top of the list.
  
-I prefer to use "useheading= 1 in your config to get a good title.+I prefer to use ''useheading = 1'' ((see [[config:useheading|Configuration Setting: useheading]])) 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 ===== ===== Syntax =====
Line 37: Line 35:
 Use this syntax Use this syntax
  
-  {{pglist> ns:selected_namespace files dirs me nostart fsort dsort}}+  {{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===== =====Examples=====
Line 48: Line 57:
  
 <code> <code>
-  {{pglist> ns:my_namespace}}  +  {{pglist>my_namespace}}  
 </code> </code>
  
 List all files inside the selected directory/namespace, only files and exclude the current page. List all files inside the selected directory/namespace, only files and exclude the current page.
 +
 +<code>
 +  {{pglist>/my_namespace}}  
 +</code>
 +
 +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.
  
 <code> <code>
plugin/pglist.1340646226.txt.gz · Last modified: 2012-06-25 19:43 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