- Posts: 76
- Thank you received: 2
How to override pagination
- Kathy
- Topic Author
- Offline
- Senior Member
-
Less
More
9 years 4 months ago #73266
by Kathy
Replied by Kathy on topic How to override pagination
The inital settings for the pagination object, I believe can be found in
administrator/components/com_eventbooking/libraries/rad/model/list.php
I changed the line:
$this->state->insert('limit', 'int', JFactory::getConfig()->get('list_limit'))
to:
$this->state->insert('limit', 'int', 0)
(I believe 0 is the setting used to display all records).
Not sure whether there's a cleaner way to change the settings only in one instance rather than throughout events booking, but this does what I want for now!
administrator/components/com_eventbooking/libraries/rad/model/list.php
I changed the line:
$this->state->insert('limit', 'int', JFactory::getConfig()->get('list_limit'))
to:
$this->state->insert('limit', 'int', 0)
(I believe 0 is the setting used to display all records).
Not sure whether there's a cleaner way to change the settings only in one instance rather than throughout events booking, but this does what I want for now!
The following user(s) said Thank You: GM Toucari Ltd
Please Log in or Create an account to join the conversation.
- Dũng Nguyễn Việt
-
- Offline
- Banned
-
Less
More
- Posts: 119
- Thank you received: 21
9 years 4 months ago #73286
by Dũng Nguyễn Việt
Replied by Dũng Nguyễn Việt on topic How to override pagination
Hello.
Please go to backend of your site => Click on System => Global Configuration => Default List Limit => Set to: 20.
Thanks.
Please go to backend of your site => Click on System => Global Configuration => Default List Limit => Set to: 20.
Thanks.
Please Log in or Create an account to join the conversation.
- Kathy
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 2
9 years 4 months ago #73355
by Kathy
Replied by Kathy on topic How to override pagination
Yep, I did discover that there is a universal Joomla setting. Only I didn't want to control it at that level, I preferred to modify it as close as possible to the registrants list as possible. As I said, my solution will change the preferences for all/most of Events Booking, and I would love to *just* control one list, but for me, it works better than changing the settings universally for my site. Thanks!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
9 years 4 months ago #73386
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to override pagination
Hi Kathy
If you change the code as proposed, it will affect all lists in Events Booking, It will show all records which I think it is an unexpected behavior
So please tell us on what list you want to display all records so that I can guide you to modify the code in the correct way
Regards,
Tuan
If you change the code as proposed, it will affect all lists in Events Booking, It will show all records which I think it is an unexpected behavior
So please tell us on what list you want to display all records so that I can guide you to modify the code in the correct way
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Kathy
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 76
- Thank you received: 2
9 years 4 months ago #73445
by Kathy
Replied by Kathy on topic How to override pagination
Tuan,
Agreed, it's not my favorite solution. As I said before, it's a solution that got me where I wanted to be, with side effects I could live with. My end goal was to end up with a sorted participants list. You can see the end result at nscfchess.org/index.php/tournaments/even...ents/ward-elementary
Under the "View Participants" link.
Participants in our events really want to know who else is registered in their own section, and an undifferentiated participant list was not all that helpful for them. Theoretically, one could generate the SQL such that the results were in this order, but that was going to require a lot of SQL modifications, pivot tables, and stuff like that that I didn't Instead I slurped all the records into a temporary array, sorted them, and displayed them. In ordwant to mess with.
er to have all the records available for slurping, it was necessary (at least in my estimation) to set up the list to display all the records at once.
Displaying all records in this particular case is okay. I'd love to be able to change the setting just for the registrants_list list, and not for all of Events Booking, but hadn't had much success figuring out how to do so (which is why I started this thread in the first place).
Thanks for any guidance!
Agreed, it's not my favorite solution. As I said before, it's a solution that got me where I wanted to be, with side effects I could live with. My end goal was to end up with a sorted participants list. You can see the end result at nscfchess.org/index.php/tournaments/even...ents/ward-elementary
Under the "View Participants" link.
Participants in our events really want to know who else is registered in their own section, and an undifferentiated participant list was not all that helpful for them. Theoretically, one could generate the SQL such that the results were in this order, but that was going to require a lot of SQL modifications, pivot tables, and stuff like that that I didn't Instead I slurped all the records into a temporary array, sorted them, and displayed them. In ordwant to mess with.
er to have all the records available for slurping, it was necessary (at least in my estimation) to set up the list to display all the records at once.
Displaying all records in this particular case is okay. I'd love to be able to change the setting just for the registrants_list list, and not for all of Events Booking, but hadn't had much success figuring out how to do so (which is why I started this thread in the first place).
Thanks for any guidance!
Please Log in or Create an account to join the conversation.
- Matthew Bourne
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 1
7 years 5 months ago #105485
by Matthew Bourne
Replied by Matthew Bourne on topic How to override pagination
Can I get guidance on how to do this for frontend event lists only - dont want to effect admin,
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 5 months ago #105498
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to override pagination
Hi Matthew
Exactly what you want to change? Please let us know so that we can look at it and guide you
Regards,
Tuan
Exactly what you want to change? Please let us know so that we can look at it and guide you
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Matthew Bourne
- Offline
- Junior Member
-
Less
More
- Posts: 26
- Thank you received: 1
7 years 1 month ago #111247
by Matthew Bourne
Replied by Matthew Bourne on topic How to override pagination
I need to list all events on the events page (so set list size to 1000 for example).
I managed this last time but latest update might have overridden my settings
I managed this last time but latest update might have overridden my settings
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
7 years 1 month ago #111260
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic How to override pagination
Not sure what menu option you are using to display events? In most of menu options, we have a parameter called Number events
You can edit the menu item, set that number to the number you want (1000 for example) and it should work OK
Regards,
Tuan
You can edit the menu item, set that number to the number you want (1000 for example) and it should work OK
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.