[pmwiki-users] FmtPageList undefined

adam overton a at plus1plus1plus.org
Wed Jul 22 18:42:44 CDT 2009

ahhhh, i see! thanks! yay! it works! grabbing the list before the  
formatting ... of course.

On 21 Jul 2009, at 6:58 AM, Hans wrote:

> 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