No subject
Fri Jan 29 04:20:33 UTC 2010
a pagination scheme other than "/page/N". In terms of implementation, it
seems to only really require 2 components:
1. a mechanism for generating the pagination component given the page
number.
2. a mechanism for generating the page number given a pagination component.
These seem completely managable since the pagination logic is (or should be)
confined to these 2 logic components.
Dave Viner
On Wed, Mar 3, 2010 at 3:15 PM, scribu <scribu at gmail.com> wrote:
> On Thu, Mar 4, 2010 at 1:01 AM, Dave Viner <dave at vinertech.com> wrote:
>
> > Beyond just changing the text of '/page/' to something else, it seems
> like
> > the whole url pagination construction should be pluggable. Something
> along
> > the lines of:
> >
> > function generate_paginated_part ($page_number)
> > {
> > // by default, we use '/page/N', but this can be overridden.
> > return '/page/' . $page_number;
> > }
> >
> > Or, if not a pluggable function, then at least a filter that passes the
> > current string, and the integer page number.
> >
> > Dave Viner
> >
>
> How (and why) would you change the structure of the pagination URL?
>
> Could you provide a use-case?
>
>
> --
> http://scribu.net
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list