[pmwiki-devel] how to access MatchCount from pagelist
Hans
design5 at softflow.co.uk
Fri Feb 13 03:25:35 CST 2009
Friday, February 13, 2009, 9:07:49 AM, Peter wrote:
> Right now pagelist is constructed somewhat as a chain link. FmtPageList
> calls $fmtfn (usually FPLTemplate()) which calls makepagelist(). No ifs,
> ands, or buts -- one calls the other which calls the last one. As a result
> there's very little possibility of any interaction in the process there...
> If it were structured like this (function names intended for
> self-documentation, not for actual use):
> function DoAPageList()
> {
> PageListOptionSetup();
> $matchlist = MakeListOfPages($selection_options);
> FormatPageList($matchlist, $formatting_options);
> }
> Then there would be some *very useful* functions available to recipes along
> the way...
This would indeed be excellent for developers! I would fully support
such a move. Thanks for bringing this forward Peter!
Hans
More information about the pmwiki-devel
mailing list