From PmWiki 2.2.5 this function is part of of the core pagelist.php script, with most of its features integrated. Consider this recipe obsolete.
A revised FPLTemplate function as a proof-of-concept idea for core development of the FPLTemplate function in pagelist.php
For testing install fpltemplate.php as standard cookbook recipe. Doing so will make pagelist to use the included function instead of the original FPLTemplate function.
Notes for Developers
Comments of changes to original function are provided in the script.
Default array of functions called in turn:
SDV($FPLTemplateFunctions, array( 'FPLTemplateLoad', //load pagelist template 'FPLTemplateDefaults', //add any defaults from template to options 'FPLTemplatePageList', //make pagelist, calls MakePageList(), merges with previous list 'FPLTemplateSliceList', //slice pagelist according to start= and count= parameters 'FPLTemplateFormat')); //construct and return HTML formatted output
To add a custom function into the chain define the array with the custom function added at the right place.
If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".
See discussion at FPLTemplate-Talk