[pmwiki-users] Pagelist definition problem (fixed?)

Patrick R. Michaud pmichaud at pobox.com
Fri Oct 6 09:31:26 CDT 2006


On Fri, Oct 06, 2006 at 07:44:31AM -0400, Crisses wrote:
> On Oct 6, 2006, at 5:44 AM, Crisses wrote:
> > I'm trying to create a list that has a header for "Work" (book  
> > title) & "WAuthor" (book author) -- of course it's possible that  
> > two Authors wrote books with the same title -- and even more  
> > possible that one author wrote many books.
> >
> > I want to change the section header every time the Work OR WAuthor  
> > changes.  I just can't seem to get the syntax correct.

I'd start with something like:

  (:if expr    ( ! equal "{=$:Work}" "{<$:Work}" ) \
            || ( ! equal "{=$:WAuthor}" "{<$:WAuthor}" ) :)

Since the page text variables are actually in the Data-
group instead of the current group being searched, I'm guessing:

(:if expr ( ! equal "{Data-{=$BaseName}$:Work}" "{Data-{<$BaseName}$:Work" ) \
          || ( ! equal "{Data-{=$BaseName}$:WAuthor}" "{Data-{<$BaseName}$:WAuthor") :)

Don't forget the "expr" conditional to (:if:) when doing a
multi-tested conditional such as this.

Pm




More information about the pmwiki-users mailing list