[pmwiki-users] pagelist range problem
Martin Fick
mogulguy at yahoo.com
Mon Oct 30 16:01:09 CST 2006
--- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> On Fri, Oct 27, 2006 at 03:22:08PM -0700, Brent Zupp
> wrote:
> > I'd like to break up pagelist results into
> multiple pages instead of
> > one long page. So the first page I'd like to list
> entries 1 to 10; on
> > the second page entries 11 to 20; and so on.
> >
> > Does anyone know an easy way to do that?
>
> I don't know of a generic, easy way to do it with
> pagelist templates. I know of ways that will work
in
> limited contexts (i.e., if the pagelist template
> isn't doing any filtering of the results).
Yeah, I actually prototyped some stuff for this (by
creating a skip argument to pagelists) a while ago and
did not really like the results. It is a tricky issue
and it seems like there has to be a better way.
You can see my ugly prototype here:
http://www.theficks.name/test/plext.dev/pmwiki.php?n=Test.Paging?count=10
I thinkt that I mentioned in a previous email that I
would need to be able to do math on a wiki page for
this to be more generic. Maybe instead we could come
up with some special pagelist variables that would
have the numbers already calculated for us? Something
like {$$nextpagecount} {$$prevpagecount}. I really
haven't thought about this much though, so I don't
even know if this makes sense.
With java I used to use the DisplayTable tag which had
powerfull paging abilities, but even it did not get
things quite right. It still felt like a hack. It's
not an easy problem.
-Martin
____________________________________________________________________________________
Access over 1 million songs - Yahoo! Music Unlimited
(http://music.yahoo.com/unlimited)
More information about the pmwiki-users
mailing list