[pmwiki-users] FmtPageList undefined

Hans design5 at softflow.co.uk
Tue Jul 21 08:58:00 CDT 2009


Tuesday, July 21, 2009, 10:59:12 AM, adam overton wrote:

> the wall i'm hitting is that i don't seem to know how to grab hold
> of the MxPageList (or FmtPageList) output. i figured it was spitting
> out a string, but apparently it's not, because it spits out some odd
> binary gibberish, something like "??3P??". either that or the
> {=\$PageCreationDateYMDHS} PV is getting chewed up. i think it's the
> former issue, though, because the problem persists even when i
> simplify the pagelist args to "group=Test".

try using in your function instead of MxPageList or FmtPageList
this:

$opt = array('group' => 'Test', ........);
$matches = MakePageList($pagename, $opt, 0);

$opt is an array of pagelist options, keyword => value;
$matches is an array of matching pagenames, which you then can use
directly with

foreach ($matches as $pn) .....

I tried your test example and also got the "gibberish" output, which
comes from FmtPageList, like 4P
Don't know why.

  ~Hans




More information about the pmwiki-users mailing list