[pmwiki-users] Pagelists and page text variables - can you help
Patrick R. Michaud
pmichaud at pobox.com
Tue Apr 10 07:42:22 CDT 2007
On Tue, Apr 10, 2007 at 07:51:33PM +1200, Simon wrote:
> --------------------------------------------------------------------------
>
> I'm trying to use PTVs in a pagelist, but get no output.
>
> (:pagelist group=PITS $:From=simon,Simon fmt={$FullName}#pitsentry :)
Because the From: fields in PITS are usually created as links,
they end up looking like "[[~Simon]]" instead of simply "Simon".
So, you probably want asterisks here, or to explicitly look for
the link:
(:pagelist group=PITS $:From=*simon* fmt=#pitsentry :)
or
(:pagelist group=PITS $:From=[[~simon]] fmt=#pitsentry :)
> (:pagelist group=Test,PITS name=Ptv* $:Ptv="some times" fmt=#title count=8:) -- works
> (:pagelist group=Test $:Ptv=No,Maybe fmt=#title count=20:) -- works
> (:pagelist group=Test $:Ptv='some times',Yes fmt=#title count=20:) -- doesn't work
> (:pagelist group=Test $:Ptv=Yes,"some times" fmt=#title count=20:) -- doesn't work
Currently page text variables only understand outer quotes, so to
search for 'some times' and 'yes' one uses:
(:pagelist group=Test $:Ptv='some times,yes' ... :)
I haven't decided if I want to adjust the ParseArgs routine
to be able to handle mixed quotations and commas.
> What do you think
> $Ptv=-* means in (:pagelist group=Test $:Ptv=-* fmt=#title count=20:)
No pages will be returned.
> $Ptv=* means in (:pagelist group=Test $:Ptv=* fmt=#title count=20:)
All pages will be returned.
Pm
More information about the pmwiki-users
mailing list