[pmwiki-users] Knowing the count of pagelist before display
Martin Fick
mogulguy at yahoo.com
Wed Nov 15 18:18:41 CST 2006
--- Pierre Racine <Pierre.Racine at sbf.ulaval.ca> wrote:
> 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...
No, I am not very familiar with PageTextVariables and
I though that at one point Patrick had mentioned being
able to filter something like this,
(:pagelist group=Members {$:Director}=John
fmt=#memberperdirector:)
but I don't see that documented here:
http://www.pmwiki.org/wiki/PmWiki/PageTextVariables
Another way to do it is like this with compound ifs
and by sorting by Director which the docs say that you
can do:
(:pagelist group=Members order=Director dir=John
fmt=#memberperdirector:)
[[#memberperdirector]]
(:if expr equal {{=$FullName}$:Director} {$$dir} &&
equal ! {{=$FullName}$:Director}
{{<$FullName}$:Director} :)
(:if equal {{=$FullName}$:Director} {$$dir} :)
'''[[{{=$FullName}$:Page} |
{{=$FullName}$:Name}]]'''\\
(:ifend:)
[[#memberperdirectorend]]
Hope that works,
-Martin
____________________________________________________________________________________
Sponsored Link
Compare mortgage rates for today.
Get up to 5 free quotes.
Www2.nextag.com
More information about the pmwiki-users
mailing list