Ok, Thanks Jonh.<div><br></div><div>I am working behind a intranet. Give me a few hours to arrange a Live Link.</div><div><br></div><div>I&#39;ll get back to you later on</div><div><br></div><div>Regards,</div><div>Edwin<br>
<br><div class="gmail_quote">On Thu, Feb 26, 2009 at 2:14 AM,  <span dir="ltr">&lt;<a href="mailto:john.rankin@affinity.co.nz">john.rankin@affinity.co.nz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
&gt; From: edwin marte &lt;<a href="mailto:edwin.marte@leidba.com">edwin.marte@leidba.com</a>&gt;<br>
&gt; Subject: Re: [pmwiki-users] wikiform ptv change<br>
<div class="Ih2E3d">&gt;<br>
&gt; I am Re-Posting,<br>
&gt; Anybody ?<br>
<br>
</div>Sorry for the slow response -- I had a busy few days.<br>
<div class="Ih2E3d">&gt;&gt;<br>
&gt;&gt; Another question has come to my mind. We are implementing some searching<br>
&gt;&gt; mechanism to our wikilist (as Peter Bowers recipes<br>
&gt;&gt; <a href="http://www.pmwiki.org/wiki/Cookbook/WikiFormsRecipes" target="_blank">http://www.pmwiki.org/wiki/Cookbook/WikiFormsRecipes</a> ). Everything is<br>
&gt;&gt; working and everything is being done manually. We kind of want to get<br>
&gt;&gt; some<br>
</div>&gt;&gt; statics from the wikilist so we want to be able to access &#39;count&#39; value<br>
<div class="Ih2E3d">&gt;&gt; as a<br>
&gt;&gt; ptv if possible.<br>
&gt;&gt;<br>
</div><div class="Ih2E3d">&gt;&gt; The wikiform recipe mentioned that a count value was added (2006), we<br>
&gt;&gt; imagine that this value is the one shown at the bottom of the wikilits<br>
&gt;&gt; with<br>
&gt;&gt; the count of record found.  Is there a way where I can use/pass the<br>
&gt;&gt; value to<br>
&gt;&gt; a PTV ? (if no possible already)<br>
<br>
</div>I think I understand exactly why you wish to do this, but cannot see an<br>
easy way to achieve it. at first glance. The difficulty is that the wikilist<br>
directive has to be evaluated to count how many pages meet the search<br>
criteria.<br>
<br>
You are correct that this is the count value referenced in the revision<br>
history for the recipe.<br>
<br>
The best idea I can come up with is a custom (:wikilistcount:) directive<br>
that does everything (:wikilist:) does except display a list! So we would<br>
modify the code to check if &quot;count&quot; is specified and if so, empty the<br>
output buffer before we output the count.<br>
<br>
The alternative (thinking out loud) would be to create a PTV function<br>
that extracts a (:wikilist:) expression from a page, runs it in a special<br>
(:wikilistcount:) mode, and have this special mode return just the<br>
count number.<br>
<br>
However, I don&#39;t see how either of these approaches can be made to<br>
work in conjunction with Peter&#39;s searching mechanism, because the<br>
wikilist doesn&#39;t know the search criteria until a searcher submits a<br>
search form.<br>
<br>
So I think the answer is that if your wikilist directives are static data,<br>
it *may* be possible, but if they are dynamic based on a searcher<br>
filling in a form, I am struggling to see a way to do it.<br>
<br>
Is it possible for me to see what you are doing? Maybe I will think<br>
of something if I see a live example (and maybe not, of course).<br>
Can you send me a link?<br>
<div><div></div><div class="Wj3C7c">&gt;&gt;<br>
&gt;&gt; I apreciate any information you may or anybody else give me in this<br>
&gt;&gt; matter,<br>
&gt;&gt;<br>
&gt;&gt; Our best regards,<br>
&gt;&gt; Edwin<br>
&gt;&gt;<br>
</div></div><font color="#888888">JR<br>
<br>
<br>
</font></blockquote></div><br></div>