[pmwiki-users] Knowing the count of pagelist before display
Martin Fick
mogulguy at yahoo.com
Wed Nov 15 16:35:35 CST 2006
--- Pierre Racine <Pierre.Racine at sbf.ulaval.ca> wrote:
> (:pagelist group=Members dir=John
> fmt=#memberperdirector:)
>
> This displays a list of people supervised by John. I
> put the word "Supervise" before the pagelist and
> this is wonderful!
>
> However if, inadvertently, John do not supervise
> anybody, I would like NOT to display the word
> "Supervise". In other word, I would
> like to know, before results are displayed what is
> the count of the pagelist operation.
It is easiest to just do this in your template. Make
the first line something like:
(:if equal 1 {$$PageCount}}:)
Supervises
(:if:)
-Martin
____________________________________________________________________________________
The all-new Yahoo! Mail beta
Fire up a more powerful email and get things done faster.
http://new.mail.yahoo.com
More information about the pmwiki-users
mailing list