[pmwiki-users] Number of results of a pagelist query ?

Benoît DUTILLEUL benoit.dutilleul at googlemail.com
Tue Mar 6 10:57:29 CST 2007


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 <benoit.dutilleul at googlemail.com>:
>
> 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 <mogulguy at yahoo.com>:
> >
> > --- 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
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070306/52efe7f9/attachment.html 


More information about the pmwiki-users mailing list