[pmwiki-users] Page List Only Returns One Instance of True Condition

Patrick R. Michaud pmichaud at pobox.com
Tue Dec 12 16:36:18 CST 2006


On Tue, Dec 12, 2006 at 11:09:51AM -1000, Sivakatirswami wrote:
> I'm  very close, but my page list is only showing the very first (or 
> last?) one.
> What am I doing wrong?
> 
> [[#ToDosForThisPage]]
> (:table cellpadding=1px border-left:2px border-top:2px:)
> (:if equal {<$Group}:)
> (:cellnr bgcolor=#f7f7f7:)[[{=$Group}/{=$Name}]]
> (:cell bgcolor=#f7f7f7:){=$:Status}
> (:cell bgcolor=#f7f7f7:){=$:Priority}
> (:cellnr bgcolor=#f7f7f7:){=$:Owner}
> (:cell colspan=2 bgcolor=#f7f7f7:){=$:Description}
> (:if equal {>$Group}:)
> (:tableend:)
> [[#ToDosForThisPage]]

The (:if equal {<$Group}:) says to display whatever follows
(up to the next 'if') only for the first page in the list.  You
probably want

  [[#ToDosForThisPage]]
  (:if equal {<$Group}:)
  (:table cellpadding=1px border-left:2px border-top:2px:)
  (:if:)
  (:cellnr bgcolor=#f7f7f7:)[[{=$Group}/{=$Name}]]
  (:cell bgcolor=#f7f7f7:){=$:Status}
  (:cell bgcolor=#f7f7f7:){=$:Priority}
  (:cellnr bgcolor=#f7f7f7:){=$:Owner}
  (:cell colspan=2 bgcolor=#f7f7f7:){=$:Description}
  (:if equal {>$Group}:)
  (:tableend:)
  [[#ToDosForThisPage]]

Pm




More information about the pmwiki-users mailing list