[pmwiki-users] PAGELIST / Wikiform PTV List Search

Simon nzskiwi at gmail.com
Mon Jul 27 14:10:04 CDT 2009


Page text variables cannot have embedded spaces in their names.See
http://www.pmwiki.org/wiki/PmWiki/PageTextVariables
<http://www.pmwiki.org/wiki/PmWiki/PagelistVariables>and
http://www.pmwiki.org/wiki/PmWiki/PageTextVariables-Talk


2009/7/28 edwin marte <edwin.marte at leidba.com>

> 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
>>>>
>>>>
>>>
>>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>


-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090728/f2f134a1/attachment.html 


More information about the pmwiki-users mailing list