Paginate in an alphabetical order

2009-02-08 Thread GetIT
Hi, I want to create an adress book. The names should be displayed with a pagination but not in the normal. Not x entries on one page, but all names beginnining with an A on one side, all with B on one side and so on. Has anyone expiriences or with that or an idea how to solve that?

Re: Paginate in an alphabetical order

2009-02-08 Thread WebbedIT
The pagination helper is not built to do this, it is a helper which quickly provides navigational links for one dataset, what you're suggesting is multiple datasets (one conditional query for each character), which if the address book contains many records is likely to need pagination for each

Re: Paginate in an alphabetical order

2009-02-08 Thread brian
I've done something similar. I've pasted the code here: http://bin.cakephp.org/view/661736473 Basically, the code will allow for listing Members by last name, one set per initial letter. Both the method for obtaining the results by letter and the list of alphabetical links (where letters for