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

Dominique Faure dominique.faure at gmail.com
Fri Oct 6 07:58:13 CDT 2006


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]]
> > @]
>
>

You should space-separate *all* terms (including parenthesis) in your
complex conditions to have it gracefully handled:

(:if ( ( ! equal {=$:Work} {<$:Work} ) || ( ! equal {=$:WAuthor}
{<$:WAuthor} ) ) :)
...
(:if:)

Regards,
Dom




More information about the pmwiki-users mailing list