[pmwiki-users] PAGELIST / Wikiform PTV List Search

Vince Admin Account vadmin at math.uconn.edu
Fri Jul 24 10:43:23 CDT 2009

On Jul 24, 2009, at 9:18 AM, edwin marte wrote:

> 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.
Just a silly thought.  Do you have other options you don't want to  
count? It is easy (as you know) to count non-empty values.

More information about the pmwiki-users mailing list