[pmwiki-users] Pagelist Fixed, What About Inheriting list types?
Patrick R. Michaud
pmichaud at pobox.com
Thu Jun 9 14:24:44 CDT 2005
On Thu, Jun 09, 2005 at 02:11:11PM -0500, Benjamin Wilson wrote:
> PM helped me sort it out. I created a new list type called "sitemap,"
> and hard-coded a set of exclusions to hide the Groups that need hiding.
> It would be great if I could inherit behavior of "normal" list type into
> this type, without having to do so manually.
To inherit:
# load defaults
include_once('scripts/pagelist.php');
# copy "normal" list type into "sitemap"
$SearchPatterns['sitemap'] = $SearchPatterns['normal'];
# add search patterns to $SearchPatterns['sitemap'] here
$SearchPatterns['sitemap'][] = '!^PmWiki\\.';
Pm
More information about the pmwiki-users
mailing list