Welcome, Guest
Username: Password: Remember me
Support for Eventlist 1.0.1

For all support requests, please provide your current versions of Joomla, and of the extensions.
  • Page:
  • 1

TOPIC: paging

paging 5 years 11 months ago #10590

Hi everyone,
I am trying to get rid of paging in the venue table with events (I want it to show them all instead of the default number).
Any ideas which file to tweak?
Thanks for all the help.

Please Log in or Create an account to join the conversation.

paging 5 years 11 months ago #10593

Question:
- do you also want to display the limitbox with setting "All" or just display the default at "All".

To adjust it it can be done in the model.
and the line is
$limit       	= $mainframe->getUserStateFromRequest('com_eventlist.venueevents.limit', 'limit', $params->def('display_num', 0), 'int');
The display_num defines the number of events to display.

That line is also within the view.html of the venueevents view and has to be adjusted too. Think the "All" is the same as 0 so you can try to change that line to "0" so it will be something like.
$limit       	= $mainframe->getUserStateFromRequest('com_eventlist.venueevents.limit', 'limit', 0, 'int');
(won't respond to PM)
==================================================================
running: JEM 3.x (custom version) + Joomla 3.9.1.0 + PHP 5.x
Locally: PHP 7.3.5 + Joomla 4.0.0-alpha10 + pre-alpha JEM4.x (custom)

Please Log in or Create an account to join the conversation.

paging 5 years 11 months ago #10596

Thanks for your answer. The solution I'm after is to have all the events displayed under the venue description (no sorting, no lightbox, nothing).

I checked both the model and the view you mentioned and they both had limit set to "0" already. So then - to play with it a bit - I changed it to "100" in both files but that didn't do the trick...

Please Log in or Create an account to join the conversation.

paging 5 years 11 months ago #10598

just removed the whole part of the code:
('display_num', 0)
and it works like a charm.

thanks for the tip, Bluefox!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.216 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.