|
Pagination?
|
|
08-01-2012, 04:57 AM
Post: #1
|
|||
|
|||
|
Pagination?
Looking through the documentation, I wasn't able to find out if AdminPack has a pagination facility (my database is growing quite large). If possible, I would like some advice on how to achieve this, hopefully not having to re-invent the wheel...
If you don't squeak, you won't get oiled!
|
|||
|
08-01-2012, 06:48 AM
Post: #2
|
|||
|
|||
|
RE: Pagination?
Pagination? What's that?
Just kidding. There are ways around pagination such as writing a search engine. As a user, are you really going to peruse more than 200 items looking for what you want to find? And where users want to "peruse" said listings, pagination frequently defeats the purpose of the find feature in most web browsers - quickly searching for a specific string. And pagination does weird things such as the last page containing one measly entry. Article and comments worth reading: http://www.codinghorror.com/blog/2012/03...ation.html As to implementing pagination in AdminPack, I've not done anything in this regard. If a complete database listing will be unwieldy to work with, I develop a search engine that displays a limited - but reasonable - number of results. Typically 200 to 300 results for a desktop web browser and 25 to 50 results for mobile. To date, no one has complained about those limits, so either no one has noticed or users who hit the limits just go back and refine their search parameters to reduce the number of results. If you still want to do pagination, you could put the paging options in 'htmldesc' for the table but you'll have to invent the wheel since I've not done so. Author of Barebones CMS If you found my reply to be helpful, be sure to donate! All funding goes toward future product development. |
|||
|
08-01-2012, 07:32 AM
(This post was last modified: 08-01-2012 07:38 AM by JiminSA.)
Post: #3
|
|||
|
|||
|
RE: Pagination?
Cool Thomas... I've already sorted a script, but integrating it will prove interesting! Incidently I want it for a search; a specific order listing I've put in and the normal listing.
If you don't squeak, you won't get oiled!
|
|||
|
08-02-2012, 02:18 AM
Post: #4
|
|||
|
|||
|
RE: Pagination?
The pagination integrated very smoothly - I simply put the code in the main page db action=="manage" section and having checked for the URL 'page' variable produced by the inserted code.
Just one question - having put the pagination 'menu' in the htmldesc for the table, is it possible to display this after the 'listing' at the bottom? If you don't squeak, you won't get oiled!
|
|||
|
08-02-2012, 06:25 PM
Post: #5
|
|||
|
|||
|
RE: Pagination?
A 'custom' field with the content being the pagination options.
This may or may not be useful: http://www.datatables.net/index I ran into that today and thought it was a pretty slick solution for pagination. Author of Barebones CMS If you found my reply to be helpful, be sure to donate! All funding goes toward future product development. |
|||
|
08-03-2012, 02:53 AM
Post: #6
|
|||
|
|||
|
RE: Pagination?
Lovely, Thomas
Looks very professional now!I have a query regarding MySql db backup, which I'll post in a new thread... If you don't squeak, you won't get oiled!
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Help





Looks very professional now!