[pmwiki-users] Hot to Filter empty Variables in Pagelist (was PAGELIST / Wikiform PTV List Search)

Audun Myhra Bergwitz bergwitz at gmail.com
Tue Mar 9 11:25:53 CST 2010


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 <edwin.marte at leidba.com>:
>> 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
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>
>>
> 
> 
> 




More information about the pmwiki-users mailing list