[pmwiki-devel] php ListPages question

Dominique Faure dominique.faure at gmail.com
Wed Dec 5 12:06:44 CST 2007


On Dec 5, 2007 6:25 PM, Hans <design5 at softflow.co.uk> wrote:
>
> What is the correct way to list all pages with ListPages?
> And what is the correct way to list all pages in groups starting with
> a certain character, like 'F' ?
>
> If I use $plist = ListPages("/^Fo*.*/");
> I get all pages in groups starting with 'Fo',
> but if I use  $plist = ListPages("/^F*.*/");
> I get all pages!
> And if I use  $plist = ListPages("/^*.*/");
> I get tons of errors.
>
> Thanks for any hints!
>
>
>  Hans
>
>

perhaps:

$plist = ListPages("/^($GroupPattern)[.\\/]($NamePattern)$/i");

would do the trick.
-- 
Dominique



More information about the pmwiki-devel mailing list