[pmwiki-users] pagelist pagination
Martin Fick
mogulguy at yahoo.com
Wed May 16 11:18:12 CDT 2007
--- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> The answer is "no", because pagelist first generates
> a list of pages, uses count= to cut the list to the
> first ten, and then displays those ten pages using
> the pagelist template.
> But the template will not display any of the pages
> that the visitor cannot edit, thus the number of
> pages that gets displayed could be much fewer than
> ten -- even zero!
>
> So, because it's possible to use (:if:) directives
> to suppress the display of certain pages in the
list,
> we don't know exactly how many pages are displayed,
> nor are we certain of the exact "count" to use for
> the next block of pages.
While it would be less efficient a simple solution
might be to limit the count during the template
processing instead by simply not counting any
iterations that don't produce any output,
-Martin
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265
More information about the pmwiki-users
mailing list