I've got everything installed and added the patches to set the default list size instead of all. Everything is working great, but my database table is pretty big and exceeds the memory allotted when it displays all...it's almost 15,000 rows right now and growing. I plan on adding other search functions later, I just have to learn an little (or a lot) more php.
Is it possible to remove the "All" option in the pagination dropdown so users don't run into this problem?
If the exceeding memory thing sounds weird, the error that shows up leads to a line in rokbox code in the system directory. I can't figure that one out, but there really isn't any reason for people to view 15,000 records on one page, so I figured this was the best solution.
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Here's a screenshot of the dropdown I'm talking about:
Hi benblee,
I tooka look at the code and this is hard-coded deep in the core code (line 329 of libraries/joomla/html/pagination.php). While you could hack that I think that maybe a better solution is to add some JavaScript to your page either to remove that option from your list (the option has a value of '0') or replace it with some smaller default - maybe '200'.
Bob
Thanks for the reply. No wonder I couldn't find it.
I'm definitely not an expert at java, is there code that you could suggest or would this require a good bit of work?
I'm not sure how to override something that is being called in from another file.
Once I get this up and running, I am planning on writing up a little tutorial of how I made my form and linked everything together...including how to set up a page for admins to go with backup links for the db tables. It's really just going to be a compilation of a lot of stuff you guys have here, just a "front to back" sort of layout for it.
Thanks again for the great component! It does take learning some code, but what you can do with it is so far beyond anything else out there, it's amazing. Very good marks on the engineering side of things here.
Works great! Thanks a ton!
hello !
I just want to know how you write that kind of pagination in joomla ?
I think it's just taking advantage of the built in pagination function that Joomla already has. You could search the core Joomla files for their code.
thanks for your reply. i mean i already write to list item and i want to add pagination in list. can u suggest me please ?
Thanks benblee,
It's working now, thank for your tutorial.