[pmwiki-users] PAGELIST / Wikiform PTV List Search

edwin marte edwin.marte at leidba.com
Fri Jul 24 08:18:02 CDT 2009


I don't know if the subject  best describe the message but here are my
issues:

I have a group of pages created with wikiforms, so what we have are
variables on the form    :variable: data

There are a few ones where I use checkboxes so what I then have is something
like this:    :variable: opt1,opt2,opt3


I need no to do is to make a pagecount for these variables with checkboxes.
I have not been able to make an accurate count yet. It should be easy,
probably somebody else hade done already and could give me some hints.

Here is my pagelist to produce a simple Pagecount

(:if false:)
[[#template]]
(:template first:)
(:template each:)
(:template last:)
{$$ PageCount}
[[#templateend]]
(:if:)

Here Only pages with Opt1 but not opt2 or opt3 are counted  (:pagelist
$:Variable=Opt1 group=Test  fmt=#template:)

Here Pages with opt1 and opt2 are counted but it will also count the ones
with the 3 options set at the same time
(:pagelist   $:Variable=Opt1,Opt2 group=Test  fmt=#template:)

Here to solve above problem (:pagelist   $:Variable=-Opt3 group=Test
fmt=#template:)

How can I make the pagelist to count the pages for any combination of the
options (opt1 only, opt2 Only, opt1 and opt2, opt3 and opt1 , etc) ?
Please any hints appreciated, conditionals are welcome.

Regards,
edwin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090724/97822911/attachment.html 


More information about the pmwiki-users mailing list