I&#39;ve tested the method proposed by Martin on my site:<br>[[#<span id="st" name="st" class="st">PageCount</span>]]<br>(:if equal {&gt;$Group}:)<br>{$$<span id="st" name="st" class="st">PageCount</span>}<br>(:ifend:)<br>
[[#PageCountEnd]]<br><br>This does what I want. Yet, I also get a carriage return before and after the value, which I don&#39;t want. How can I get rid of them ?<br><br>Cheers,<br><br>Benoit<br><br><br><div><span class="gmail_quote">
2007/3/4, Benoît DUTILLEUL &lt;<a href="mailto:benoit.dutilleul@googlemail.com">benoit.dutilleul@googlemail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello Martin and thanks a lot for your answer which is very helpful !<br>I have another related question : with your &quot;template&quot;, the <span id="st" name="st" class="st">pagecount</span> result 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 ?
<br><br>Cheers,<br><br>Benoit<br><br><br><div><span class="gmail_quote">2007/3/1, Martin Fick &lt;<a href="mailto:mogulguy@yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mogulguy@yahoo.com
</a>&gt;:</span><div><span class="e" id="q_1111f033d0ba16fa_1"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
--- Benoît DUTILLEUL &lt;<a href="mailto:benoit.dutilleul@googlemail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">benoit.dutilleul@googlemail.com</a>&gt;<br>wrote:<br><br>&gt; Is there a way to display the number of results of a
<br>&gt; pagelist query ?<br><br>
This is not the most efficient way to do this, but you<br>could make a template like this:<br><br>[[#PageCount]]<br>(:if equal {&gt;$Group}:)<br>* PageCount: {$$PageCount}<br>[[#PageCountEnd]]<br><br>This will not do anything if the count is zero.&nbsp;&nbsp;With
<br>the new enhancements which Patrick has proposed this<br>will eventually look like this:<br><br>[[#PageCount]]<br>(:template last:)<br>* PageCount: {$$PageCount}<br>(:template nopages:)<br>* PageCount: 0<br>[[#PageCountEnd]]
<br><br>and be much more efficient too!<br><br>-Martin<br><br><br><br><br>____________________________________________________________________________________<br>Food fight? Enjoy some healthy debate<br>in the Yahoo! Answers Food &amp; Drink Q&amp;A.
<br><a href="http://answers.yahoo.com/dir/?link=list&amp;sid=396545367" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://answers.yahoo.com/dir/?link=list&amp;sid=396545367</a><br></blockquote>
</span></div></div><br>
</blockquote></div><br>