On Wed, Jan 21, 2004 at 08:52:20AM -0500, darren chamberlain wrote:
> * David Hodgkinson <daveh at hodgkinson.org> [2004/01/21 11:57]:
> > On Wednesday, Jan 21, 2004, at 11:27 Europe/London, Dave Howorth wrote:
> > > It seems pretty straightforward to code this, but before I reinvent
> > > another wheel, does anybody know of a better way to provide this
> > > functionality than to just sit down and code it?
> > 
> > Leo Lapworth has a Pager perl module that you could paste in as a
> > plugin maybe?
> 
> Or you could use Leon Brocard's Template::Plugin::Page.

For simple pageing 1,2,3,4,5,...99 use the above (also avaiable
as Data::Page on CPAN). With next_page() previous_page() etc.

Data::Pagest (mine) takes it one step further and does
1,2,3,4,5 [ next 5 ]

Where [ next 5 ] takes you to '6'.. e.g: 
[ prev 5 ] 6,7,8,9,10 [ next 5 ]

Really must make a TT plugin for it sometime.

Anyway - laters :)

Leo

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to