[pmwiki-users] PAGELIST / Wikiform PTV List Search

edwin marte edwin.marte at leidba.com
Mon Jul 27 15:19:27 CDT 2009


Yes, sure, I just had forgotten about that tiny detail. I even found an old
post of my own with wikiforms where I had a similar problem.

I'll be thinking, testing and looking for a work around. If anybody have any
idea , please inlight me. I have a bunch of pages created with wikiforms,
they use definition list with spaces in the name. Wikiform process these
spaces with no problem. My problem is that I am been requested to give
automated stats / Results of the data .


so what I have left to do: (:pagelist $:Var1:Filter1 $:Var2:Filter2......

I have been testing and I could with some conditionals get these results ,
my problem is that Var1 is in the form:->
:Name of Var1: data of Var1   It has spaces, I did not see that coming at
the beginning. The system wasn't meant to what they want now.

Thanks Simon, Thanks Petko, Thanks All.

Edwin


On Mon, Jul 27, 2009 at 4:10 PM, Simon <nzskiwi at gmail.com> wrote:

> 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/20090727/54801684/attachment-0001.html 


More information about the pmwiki-users mailing list