[pmwiki-users] 2.1.beta15: pagelist formats
Patrick R. Michaud
pmichaud at pobox.com
Thu Dec 29 11:58:59 CST 2005
On Thu, Dec 29, 2005 at 11:51:51AM -0600, Patrick R. Michaud wrote:
> On Thu, Dec 29, 2005 at 05:41:51PM +0000, Hans wrote:
> >
> > Thanks! What exactly does (:if equal {<$Group}:) do?
> > I see now that it substitutes for $FPL...StartFmt, and
> > (:if equal {>$Group}:) for $FPL...EndFmt,
> > but how is this achieved?
>
> Think of it as
> (:if equal {<$Group} "" :)
> and
> (:if equal {>$Group} "" :)
> The first says "if the previous page's group is empty"
> (i.e., start of the list), the second says "if the next
> page's group is empty" (i.e., end of the list).
More generally, we have:
(:if equal {<$Group}:) At beginning of list
(:if equal {>$Group}:) At end of list
(:if ! equal {<$Group} {=$Group}:) First item in group
(:if ! equal {>$Group} (=$Group}:) Last item in group
Pm
More information about the pmwiki-users
mailing list