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

Hans design5 at softflow.co.uk
Wed Jul 29 12:30:39 CDT 2009


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

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

PS: alternatively use Cookbook/PowerTools
and a markup expression like

{(pagecount (plist group=*,-Site,-SiteAdmin))}

This is a nested expression:
(plist group=*,-Site,-SiteAdmin) lists all pages in all groups
except Site and SiteAdmin (exceptions have  a minus in front)
(pagecount ... ) counts the list and returns the number.

This approach is more flexible than using Cookbook/NumberOfArticles.
it does not rely on a specific page store (like wiki.d) and how it is
organised (no Group subdirectories).

Instead it uses PmWiki's own ListtPagwes() function, and wildcard
patterns. One can exclude specific groups and specific pages from the
count. for instance to exclude recentChanges pages:

{(pagecount (plist -*.RecentChanges group=*,-Site,-SiteAdmin))}


  ~Hans




More information about the pmwiki-users mailing list