RE: al-for paging patch

<[email protected]> Sun, 14 Mar 2004 19:25:08 -0500
Newsgroups gmane.comp.web.albatross.general
Message-ID <000001c40a23$f9078810$0200a8c0@CLAPTON>
I just came across a bug in the patch.  By some weird run of luck, I
never had the pagemenu op called last, so there was an issue where
sometime a paging button wouldn't work with a pagemenu display.  This is
fixed, and the patch updated.

Mike

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf 
> Of Michael C. Neel
> Sent: Wednesday, March 10, 2004 7:33 PM
> To: [email protected]
> Subject: [albatross-users] al-for paging patch
> 
> 
> Well it looks like some of the refactoring done to albatross has made
> adding in the paging additions pretty easy.  For the impatient, links
> are:
> 
	http://albatross.pseudocode.net/ for a demo
	http://albatross.pseudocode.net/paging_patch.diff.gz for the
patch
	The changes are against the latest (Feb 4th) dev ball.

What I've done: added support for firstpage, lastpage and setpage to
al-input and al-a.  I haven't tested al-a changes beyond the links being
built correctly - need to setup a server based session store to check
them so they don't work on the demo site.

I also added pagemenu to select, which lets a select box xset the page
to jump to as well.  I used pagemenu over setpage because having a
setpage button with a setpage argument caused namespace issues.

Last, I put in two ListIterator method, page() and pagecount(), which
return the page and number of pages.  All page related methods (page(),
pagecount(), and setpage) are 1 based and *not* zero indexed.  The
reason behind this is the value of the input on a sumbit button for
setpage is the value used to switch pages.  If it were zero based, your
button labels would be as well.

I look forward to comments and I'm ready to tweak away to address any
issues.

Mike
_______________________________________________
Albatross-users mailing list
[email protected]
https://www.object-craft.com.au/cgi-bin/mailman/listinfo/albatross-users