[pmwiki-users] FmtPageList undefined
a at plus1plus1plus.org
Mon Jul 20 18:26:48 CDT 2009
thanks for the advice
i just tried it, and my error messages go away, but it's not quite
i've tried it with the code below, which ends up spitting out
something semi-unreadable: ??3P??
(the ?'s are some sort of binary-esque symbol)
# i've tried loading both pagelist.php and stdconfig.php beforehand
(one and then the other)
$argsx = "group=Test";
$optx = array('o' => $argsx, 'fmt' => 'csv');
$pagelistTest = FmtPageList('$MatchList', $pagename, $optx, 0);
# or using the PowerTools pagelist function:
//$pagelistTest = MxPageList($pagename, "group=Test");
this all at the very very bottom of config.php beneath everything as
and, something like the following still works fine, running at the
$FmtPV['$blamtest'] = 'MxPageList($pn, "group=Test")'; # works
perfect, show a csv-list of pages in the group 'Test'
do i need to convert or treat the output? or is pagelist still
looking for something else to load beforehand?
thanks a bunch
On 20 Jul 2009, at 3:50 AM, Patrick R. Michaud wrote:
> On Mon, Jul 20, 2009 at 12:16:28AM -0700, adam overton wrote:
>> Call to undefined function fmtpagelist()
>> i'm guessing that scripts/pagelist.php is being defined after
>> config.php has
>> been loaded. is that correct?
>> is there a way to be able to use the FmtPageList function within
>> config or one
>> of my own recipes?
> In your recipe, do
> Note, however, that pagelist.php may itself depend on other things
> being loaded. The generic "correct" approach is to either handle
> in an action after everything has been loaded (preferred), or else
> force a load of the entire standard configuration with:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the pmwiki-users