<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Verdana; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="font-size: medium;">hi Patrick</span></span></span></span></div><div>thanks for the advice</div><div><br></div><div>i just tried it, and my error messages go away, but it's not quite working.</div><div>i've tried it with the code below, which ends up spitting out something semi-unreadable: ??3P??</div><div>(the ?'s are some sort of binary-esque symbol)</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span># i've tried loading both pagelist.php and stdconfig.php beforehand (one and then the other)</div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>//include_once('scripts/pagelist.php');</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>include_once('scripts/stdconfig.php');</div></div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$argsx = "group=Test";</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$optx = array('o' => $argsx, 'fmt' => 'csv');</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$pagelistTest = FmtPageList('$MatchList', $pagename, $optx, 0);</div><div><span class="Apple-tab-span" style="white-space:pre">        </span># or using the PowerTools pagelist function:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>//$pagelistTest = MxPageList($pagename, "group=Test");</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>echo $pagelistTest;</div><div><br></div></div><div>this all at the very very bottom of config.php beneath everything as suggested.</div><div>and, something like the following still works fine, running at the same time:</div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>$FmtPV['$blamtest'] = 'MxPageList($pn, "group=Test")'; # works perfect, show a csv-list of pages in the group 'Test'</div><div><br></div></div><div>do i need to convert or treat the output? or is pagelist still looking for something else to load beforehand?</div><div>thanks a bunch</div><div>adam</div><div><br></div><div><br></div><br><div><div>On 20 Jul 2009, at 3:50 AM, Patrick R. Michaud wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Mon, Jul 20, 2009 at 12:16:28AM -0700, adam overton wrote:</div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Call to undefined function fmtpagelist()</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">i'm guessing that scripts/pagelist.php is being defined after config.php has</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">been loaded. is that correct?</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Correct.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">is there a way to be able to use the FmtPageList function within config or one</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">of my own recipes?</div> </blockquote><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">In your recipe, do</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>include_once('scripts/pagelist.php');</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Note, however, that pagelist.php may itself depend on other things</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">being loaded.<span class="Apple-converted-space"> </span>The generic "correct" approach is to either handle things</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">in an action after everything has been loaded (preferred), or else</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">force a load of the entire standard configuration with:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>include_once('scripts/stdconfig.php');</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Pm</div> </blockquote></div><br></body></html>