[pmwiki-users] List of all pages

Patrick R. Michaud pmichaud at pobox.com
Mon Jan 29 11:41:42 CST 2007


On Fri, Jan 26, 2007 at 03:11:58PM -0500, The Editor wrote:
> If I wanted to created an array of ALL the pages in wiki.d, how would
> I modify this line:
> 
> $AllPages = ListPages("/^$g\\.\\d/");

To get all of the pages on a site, you would use:

    $AllPages = ListPages();


If you want just those pages that are in wiki.d/  (i.e., excluding
wikilib.d/ or any other custom pagestores):

    $AllPages = $WikiDir->ls(array());

Pm



More information about the pmwiki-users mailing list