[pmwiki-users] PAGELIST / Wikiform PTV List Search
edwin marte
edwin.marte at leidba.com
Mon Jul 27 08:56:55 CDT 2009
Another Question just poped here !
What about long names with spaces with PTV in the pagelist, it seems not to
be working like the following:
(:pagelist $:Long Name=TheOption....
Long Name as PTV seems not to be working. I tried "$:Long Name" $:"Long
Name" $:'Long Name' '$:Long Name' , what should be the correct way ?
Edwin
On Mon, Jul 27, 2009 at 10:42 AM, edwin marte <edwin.marte at leidba.com>wrote:
> It Just Works!! thanks...but, there is always a but :-)
>
> what about if I want a pagelist with 2 different ptv on it like this ->
> (:pagelist $:Var1=opt1 $:Var2=AnotherOption ...
>
> Any work around to this? It seems to be pagelist only works with only one
> PTV at a time.
>
> Regards,
> Edwin
>
>
>
> On Sat, Jul 25, 2009 at 12:42 PM, edwin marte <edwin.marte at leidba.com>wrote:
>
>> I'll test this on monday but I believe that is exactly the hints I needed
>> !!
>>
>> Thanks Petko,
>>
>> Regadrs, Edwin
>>
>>
>> On Sat, Jul 25, 2009 at 7:47 AM, Petko Yotov <5ko at 5ko.fr> wrote:
>>
>>> On Friday 24 July 2009 15:18:02 edwin marte wrote:
>>> > 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:)
>>>
>>> Hi. If you only need to produce a number, use the built-in, faster
>>> "fmt=count"
>>> instead of 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) ?
>>>
>>> 1. Values starting with "-" are always excluded, like:
>>>
>>> $:Var=-Opt1 -- the value of :Var: is not "Opt1"
>>> -- counts :Var:Opt1,Opt2 but not :Var:Opt1
>>>
>>> $:Var=-*Opt1* -- the value of :Var: does not contain "Opt1"
>>> -- counts neither :Var:Opt1,Opt2 nor :Var:Opt1
>>>
>>>
>>> 2. A comma means inclusive OR, except for 1. above.
>>>
>>> $:Var=Opt1
>>> -- counts :Var:Opt1 but not :Var:Opt1,Opt2
>>>
>>> $:Var=*Opt1*
>>> -- counts :Var:Opt1 and :Var:Opt1,Opt2
>>>
>>> $:Var=Opt1,Opt2
>>> -- counts :Var:Opt1 and :Var:Opt2 but not :Var:Opt1,Opt2
>>>
>>> $:Var=*Opt1*,*Opt2*
>>> -- counts :Var:Opt1 and :Var:Opt2 and :Var:Opt1,Opt2,Opt3
>>>
>>> $:Var=*Opt1*,*Opt2*,-*Opt3*
>>> -- counts :Var:Opt1 and :Var:Opt1,Opt2 but not :Var:Opt2,Opt3
>>>
>>> $:Var=*Opt1*Opt2*,*Opt2*Opt1* -- contains both Opt2 and Opt1
>>> -- counts :Var:Opt1,Opt2 and :Var:Opt2,Opt1 and :Var:Opt2,Opt3,Opt1
>>>
>>> Thanks,
>>> Petko
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090727/cf9fc139/attachment.html
More information about the pmwiki-users
mailing list