[pmwiki-users] Number of results of a pagelist query ?
Martin Fick
mogulguy at yahoo.com
Wed Feb 28 17:28:59 CST 2007
--- Benoît DUTILLEUL <benoit.dutilleul at googlemail.com>
wrote:
> Is there a way to display the number of results of a
> pagelist query ?
This is not the most efficient way to do this, but you
could make a template like this:
[[#PageCount]]
(:if equal {>$Group}:)
* PageCount: {$$PageCount}
[[#PageCountEnd]]
This will not do anything if the count is zero. With
the new enhancements which Patrick has proposed this
will eventually look like this:
[[#PageCount]]
(:template last:)
* PageCount: {$$PageCount}
(:template nopages:)
* PageCount: 0
[[#PageCountEnd]]
and be much more efficient too!
-Martin
____________________________________________________________________________________
Food fight? Enjoy some healthy debate
in the Yahoo! Answers Food & Drink Q&A.
http://answers.yahoo.com/dir/?link=list&sid=396545367
More information about the pmwiki-users
mailing list