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

Dominique Faure dominique.faure at gmail.com
Fri Oct 6 08:06:33 CDT 2006


On 10/6/06, Dominique Faure <dominique.faure at gmail.com> wrote:
> On 10/6/06, Crisses <crisses at kinhost.org> 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.
> > >
> > > Here's my latest try, but I've tried a bunch of other methods.
> > >
> > > [@
> > > [[#othercatlist]]
> > > (:if  (( ! equal {=$:Work} {<$:Work} )) || (( ! equal {=$:WAuthor}
> > > {<$:WAuthor} )) :)
> > > *   {Data-{=$FullName}$:Work} - {Data-{=$FullName}$:WAuthor} -
> > > {Data-{=$FullName}$:Year}
> > > (:ifend:)
> > > -->[[{=$FullName} | {Data-{=$FullName}$:Simile}]]
> > > [[#othercatlistend]]
> > > @]
> >
> >
>

And don't forget Morgan's Law:

"not(A or B)" is equivalent to "not(A) and not(B)

Dom




More information about the pmwiki-users mailing list