Ok, I got a partial solution to what I needed. I managed it using filters using substr markup like <br><br>(:pagelist group=testgroup  $:Var=C{(substr {$Opt1} 1 5)}a*,*O{(substr {$Opt2} 1 5)}t*,-&quot;&quot;:)  that works for me (probably there could be simpler but that was I did)  <br>

<br>The thing is that I filter them  only when certain words appear (specially at the beginning and at the end of the word) in my ptv and I can get not listing them when they are empty<br><br>But now I have another question, I have another pagelist which looks simpler (:pagelist group=testgroup  $:Var=&quot;{$Opt1},{$Opt2}&quot;:)<br>


<br>Opt1 and Opt2 are in Definition list Format and Could have  spaces. I have no figure it out how not to list $Var when both Opt1 and Opt2 are empty, the pagelist list all items/entries when they are empty. I tried things like (:pagelist group=testgroup  $:Var={$Opt1} ,{$Opt2},-&quot;&quot;:) but that does not work, I need using the Quotes because of the spaces and  (:pagelist group=testgroup  $:Var=&quot;{$Opt1} ,{$Opt2}&quot;,-&quot;&quot;:) would not work either<br>

<br>Any Pointers ?<br><br>Edwin<br>
<br><br><br><br><div class="gmail_quote">On Sun, Feb 28, 2010 at 3:21 AM, edwin marte <span dir="ltr">&lt;<a href="mailto:edwin.marte@leidba.com" target="_blank">edwin.marte@leidba.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


$:Var=?* does not do the trick for me or at least I donīt know how to place it in the pagelist. When the Form is submitted with one of the values unset then the pagelist shows all the pages even the empty ones. <br><br>What happens is the following: Var could have one, two, all or none of 3 possible values set in a page.<br>



<br>(:Var: Value1:)<br>(:Var: Value1,Value2:)<br>(:Var: Value1,Value2,Value3:)<br>(:Var: Value1,Value3:)<br>(:Var: Value2,Value3:)<br>(:Var: Value2:)<br>(:Var: Value3:)<br>(:Var: :)<br><br>Ej; <a href="http://localhost/index.php/testgroup/Query?Opt1=Value1&amp;Opt2=Value2&amp;valuesent=1&amp;Search=Submit+Query" target="_blank">http://localhost/index.php/testgroup/Query?Opt1=Value1&amp;Opt2=Value2&amp;valuesent=1&amp;Search=Submit+Query</a><br>



<br>Then I have a Query page where I have 3 checkboxes to select what value to filter in the pagelist<div><br><br>(:input form method=get:)<br>(:input default request=1:)<br><br></div>(:input checkbox name=Opt1 value=Value1:)Value1<br>



(:input checkbox name=Opt2 value=Value2:) Value2<br>(:input checkbox name=Opt3 value=Value3:)Value3<br><br>(:input hidden valuesent value=1:)<br><br>(:input submit Search:)<br>(:input end:)<br><br>(:if equal {$?valuesent} 1:) <br>



(:pagelist group=testgroup  $:Var=*{$Opt1}*,*{$Opt2}*,*{$Opt3}*:)<br>(:if:)<br><br>This pagelist is shown only when form is submitted . httpvariables are enable, I have no used them all the time Iīve been just trying for a workaround for this, that is why.  I know $:Var=?* would not list the empty ones but donīt know how to handle it in my case. Any help appreciated.<br>



<br>Thanks Peter for Replying though,<br><font color="#888888"><br>Edwin</font><div><div></div><div><br><br><br><br><br><br><br><br>On Sat, Feb 27, 2010 at 8:20 AM, Peter Bowers &lt;<a href="mailto:pbowers@pobox.com" target="_blank">pbowers@pobox.com</a>&gt; wrote:<br>


&gt;<br>&gt; On Fri, Feb 26, 2010 at 7:19 PM, edwin marte &lt;<a href="mailto:edwin.marte@leidba.com" target="_blank">edwin.marte@leidba.com</a>&gt; wrote:<br>
&gt; &gt; Hello Petko / List,<br>&gt; &gt; About the following Option   $:Var=*{$Opt1}*,*{$Opt2}*    How can I list or<br>&gt; &gt; count them only when they are not empty?<br>&gt;<br>&gt; $:Var=?*<br>&gt;<br>&gt; that requires $:Var to have *some* value.<br>



&gt;<br>&gt; -Peter<br><br>
</div></div></blockquote></div><br>