00411: pagelist to exclude redirects

Summary: pagelist to exclude redirects
Created: 2005-03-30 13:37
Status: Open
Category: Feature
From: Simon
Priority: 3
Version: 2.28beta
OS: n/a


 I use
 (:pagelist group=Profiles list=normal:)
 as a handy of display the contents of a group.

 (See http://pmwiki.org/wiki/PmWiki/Directives#pagelist).

 I'd like to have the pagelist not list pages such as
 the page the pagelist is generated in (in this case HomePage),
 or SideBar, or SearchWiki,
 or pages that are simply redirects.

 $SearchPatterns['normal'][] = FmtPageName('!^$FullName$!', $pagename);
 $SearchPatterns['normal'][] = '!^Main.(SideBar|SearchWiki)$!';

At the moment I don't have an easy way to exclude pages that are redirects, but it's an excellent idea. I'll see if I can include that into the overall scheme of things (''it's probably worth adding a note about this to PITS'').

Perhaps you can exclude most redirects with something like:

   (:pagelist group=Profiles list=normal -"redirect "  :)