[pmwiki-users] Knowing the count of pagelist before display

Pierre Racine Pierre.Racine at sbf.ulaval.ca
Wed Nov 15 17:26:47 CST 2006


My template already looks like this:

[[#memberperdirector]]
(:if equal {{=$FullName}$:Director} {$$dir} :)
'''[[{{=$FullName}$:Page} | {{=$FullName}$:Name}]]'''\\
(:ifend:)
[[#memberperdirectorend]]

I don't think I can embed a "if" statement into the one already existing...

Pierre

> -----Message d'origine-----
> De : Martin Fick [mailto:mogulguy at yahoo.com]
> Envoyé : 15 novembre 2006 18:00
> À : Martin Fick; Pierre Racine; pmwiki-users at pmichaud.com
> Objet : Re: [pmwiki-users] Knowing the count of pagelist before display
> 
> --- Martin Fick <mogulguy at yahoo.com> wrote:
> > > However if, inadvertently, John do not supervise
> > > anybody, I would like NOT to display the word
> > > "Supervise". In other word, I would
> > > like to know, before results are displayed what is
> > > the count of the pagelist operation.
> >
> > It is easiest to just do this in your template.
> > Make the first line something like:
> >
> > (:if equal 1 {$$PageCount}}:)
> 
> That line should be:
>   (:if equal 1 {$$PageCount}:)
> 
> > Supervises
> > (:if:)
> 
> -Martin
> 
> 
> 
> 
> 
> ____________________________________________________________________________________
> Sponsored Link
> 
> Online degrees - find the right program to advance your career.
> Www.nextag.com





More information about the pmwiki-users mailing list