[pmwiki-users] NumberOfArticles don't work after 2.2.4 upgrade

Hans design5 at softflow.co.uk
Wed Jul 29 11:56:17 CDT 2009


Wednesday, July 29, 2009, 3:46:11 PM, jdd wrote:

> http://www.pmwiki.org/wiki/Cookbook/NumberOfArticles

> don't work after 2.2.4 upgrade (from 2.0.?)

change the markup definition to

Markup('(:numberofarticles:)', '_begin','/\\(\\:numberofarticles\\:\\)/ei',
"NumArticles()");

'_Begin' does not work, it has to be correct as '_begin'.
PmWiki insists now on precise terms in the markup order, wrong terms
result in a failure. Before markup was evaluated anyway.

Also I made  a direct call to the function in the markup definition.

Side note: the recipe only works for page files in wiki.d
If you have the page files in Group subdirectories of wiki.d it will
not count them.


  ~Hans




More information about the pmwiki-users mailing list