I've tested the method proposed by Martin on my site:
[[#PageCount]]
(:if equal {>$Group}:)
{$$PageCount}
(:ifend:)
[[#PageCountEnd]]
This does what I want. Yet, I also get a carriage return before and after
the value, which I don't want. How can I get rid of them ?
Cheers,
Benoit
2007/3/4, Benoît DUTILLEUL <[EMAIL PROTECTED]>:
Hello Martin and thanks a lot for your answer which is very helpful !
I have another related question : with your "template", the pagecountresult is
displayed but there are apparently 2 return characters that are
also present in the result. Do you know how I can get rid of them ?
Cheers,
Benoit
2007/3/1, Martin Fick <[EMAIL PROTECTED]>:
>
> --- Benoît DUTILLEUL <[EMAIL PROTECTED]>
> 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
>
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users