(:pagelist group=testgroup $:Var="-,*{$Opt1}*,*{$Opt2}*":)
seems to me to be the correct markup, but as it doesn't work maybe:
(:pagelist group=testgroup $:Var="*{$Opt1}*,*{$Opt2}*" $Var=- :)
could work. Don't know what happens if you try to call the same PTV
twice in a pagelist, but I assume that it only makes the search a bit
slower.
audun
edwin marte wrote:
> Thanks Audun,
>
> I know that option works, but that works for (:pagelist
> $:MyPageTextVariable=- :) no empty only. I need it to be , no empty
> and also only for the values of Opt1 and Opt2 wich are definition list
> with spaces, so they have to be quoted.
>
> So should it be (:pagelist group=testgroup
> $:Var=-,"*{$Opt1}*,*{$Opt2}*":) or (:pagelist group=testgroup
> $:Var="-,*{$Opt1}*,*{$Opt2}*":) or (:pagelist group=testgroup
> $:Var="*{$Opt1}*,*{$Opt2}*",-:) (neither of those work), that is what
> I am trying.
>
> Regards,
> Edwin
>
> On Tue, Mar 9, 2010 at 6:25 PM, Audun Myhra Bergwitz
> <[email protected] <mailto:[email protected]>> wrote:
>
> ABClf wrote:
> >>From pagelists page doc :
> >
> > PTV is set (is not empty): (:pagelist $:MyPageTextVariable=- :)
>
> This would solve your problem.
> >
> > Maybe to be used with « if » statement, not sure how to do exactly,
> > maybe it helps.
> >
> No need to use a if statement to exclude pages without PTVs, the code
> above works just as described.
>
> audun
>
> >
> >
> > 2010/3/9 edwin marte <[email protected]
> <mailto:[email protected]>>:
> >> My case is teh following, I have a pagelist like this (:pagelist
> >> group=testgroup $:Var="*{$Opt1}*,*{$Opt2}*":)
> >>
> >> Mostly this pagelitst works but when opt1 or Opt2 are empty
> will cause the
> >> pagelist to show all pages **. Because of the quotes I don't
> know how to
> >> make the pagelist works excluding the variables where Var is
> empty .How can
> >> I include a filter like that in the pagelist above.?
> >>
> >> Best Regards,
> >> Edwin
> >>
> >> _______________________________________________
> >> pmwiki-users mailing list
> >> [email protected] <mailto:[email protected]>
> >> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> >>
> >>
> >
> >
> >
>
>
> _______________________________________________
> pmwiki-users mailing list
> [email protected] <mailto:[email protected]>
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
>
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users