[pmwiki-users] fmt=#description weirdness

Maria McKinley parody at u.washington.edu
Fri Oct 26 03:07:35 CDT 2007


Yes, I think so. (Love this long conversation with myself, sorry for
filling everyone's inbox with it).

This code seems to work fine:

(:if false:)
[[#description]]
* [[{=$FullName}|+]]
  - {=$Description}
[[#descriptionend]]
(:ifend:)

(:pagelist group={$Group} fmt=#description count=7:)

And now I get what the = before the $Description was for - gets it
from the page it is sampling from, instead of the current page. I'm
really not sure why the if statement was there at all.

~maria

On 10/26/07, Maria McKinley <parody at u.washington.edu> wrote:
> Could this be a problem with using nested if statements?
>
> On 10/26/07, Maria McKinley <parody at u.washington.edu> wrote:
> > Spoke to soon, my solution repeats the description for the pagelist
> > even without the quotes. :-(
> >
> > ~maria
> >
> > On 10/26/07, Maria McKinley <parody at u.washington.edu> wrote:
> > > Whoopee! I figured this out:
> > >
> > > the line
> > >
> > > (:if ! equal {=$Description} '':)
> > >   - {=$Description}
> > >
> > > should be:
> > >
> > > (:if ! equal {=$Description}:)
> > > -{$Description}
> > >
> > > I'm not sure what the quotes were for on the original, but they seem
> > > to repeat the description for the pagelist for all of the descriptions
> > > if I leave it in. I'll change the example on pmwiki.
> > >
> > > cheers,
> > > maria
> > >
> > > On 10/26/07, Maria McKinley <parody at u.washington.edu> wrote:
> > > > Hey there,
> > > >
> > > > On this page: http://www.pmwiki.org/wiki/Site/PageListTemplates is an
> > > > example for fmt=#description.
> > > > Something about this code produces - {=$Description} at the top of the
> > > > page. I don't think it is something I did, because it shows up in
> > > > their example too. Does anyone know why this does this, and/or how to
> > > > get rid of it?
> > > >
> > > > thanks,
> > > > maria
> > > >
> > >
> > >
> > > --
> > > Maria Mckinley
> > > Scientific Programmer
> > > Shadlen Lab
> > > Physiology and Biophysics
> > > Box 357290
> > > University of Washington
> > > (206) 616-3923
> > > parody at u.washington.edu
> > >
> >
> >
> > --
> > Maria Mckinley
> > Scientific Programmer
> > Shadlen Lab
> > Physiology and Biophysics
> > Box 357290
> > University of Washington
> > (206) 616-3923
> > parody at u.washington.edu
> >
>
>
> --
> Maria Mckinley
> Scientific Programmer
> Shadlen Lab
> Physiology and Biophysics
> Box 357290
> University of Washington
> (206) 616-3923
> parody at u.washington.edu
>


-- 
Maria Mckinley
Scientific Programmer
Shadlen Lab
Physiology and Biophysics
Box 357290
University of Washington
(206) 616-3923
parody at u.washington.edu



More information about the pmwiki-users mailing list