|
From: <var...@us...> - 2021-12-09 17:45:42
|
Revision: 10766
http://sourceforge.net/p/phpwiki/code/10766
Author: vargenau
Date: 2021-12-09 17:45:40 +0000 (Thu, 09 Dec 2021)
Log Message:
-----------
ListSubpages plugin: add exclude argument in Help page, maxpages is a number
Modified Paths:
--------------
trunk/lib/plugin/ListSubpages.php
trunk/pgsrc/Help%2FListSubpagesPlugin
Modified: trunk/lib/plugin/ListSubpages.php
===================================================================
--- trunk/lib/plugin/ListSubpages.php 2021-12-09 17:41:41 UTC (rev 10765)
+++ trunk/lib/plugin/ListSubpages.php 2021-12-09 17:45:40 UTC (rev 10766)
@@ -45,9 +45,8 @@
PageList::supportedArgs(),
array('noheader' => false, // no header
'basepage' => false, // subpages of which page, default: current
- 'maxpages' => '', // maximum number of pages to include, change that to limit
- //'exclude' => '',
- /*'relative' => false, */
+ 'maxpages' => 0, // maximum number of pages to include, change that to limit
+ 'exclude' => '',
'info' => ''
));
}
@@ -123,9 +122,6 @@
continue;
}
array_push($included_pages, $page);
- //if ($relative) {
- // TODO: add relative subpage name display to PageList class
- //}
$pagelist->addPage($page);
array_pop($included_pages);
Modified: trunk/pgsrc/Help%2FListSubpagesPlugin
===================================================================
--- trunk/pgsrc/Help%2FListSubpagesPlugin 2021-12-09 17:41:41 UTC (rev 10765)
+++ trunk/pgsrc/Help%2FListSubpagesPlugin 2021-12-09 17:45:40 UTC (rev 10766)
@@ -1,4 +1,4 @@
-Date: Sat, 20 Feb 2021 11:52:37 +0000
+Date: Thu, 9 Dec 2021 18:39:25 +0000
Mime-Version: 1.0 (Produced by PhpWiki 1.6.0)
Content-Type: application/x-phpwiki;
pagename=Help%2FListSubpagesPlugin;
@@ -31,15 +31,19 @@
|-
| **maxpages**
| Maximum number of pages to include
-| none
+| 0
|-
| **noheader**
-| Boolean. If true, do not display header.
+| Boolean. If true, header should be omitted.
| false
|-
| **info**
| List of columns to display
-| none
+| //empty//
+|-
+| **exclude**
+| Comma-separated list of pages to exclude
+| //empty//
|}
== Example ==
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|