Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Deactivate Limit / Pagination 09 Mar 2018 10:45 #15505

Hello. I am trying to deactivate the limit of items to show per page or set it to 0 which shows all items.
It works if I set $this->setState('list.limit', 0); in the model but I'd like to set it by default in J-Cook. Is it possible to do this without coding after component creation?

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

Deactivate Limit / Pagination 13 Mar 2018 20:35 #15507

Cook respects the Joomla default list length I beileve.
When you set that to ALL, it will probably work.
Did not test though ;)

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

Deactivate Limit / Pagination 14 Mar 2018 16:59 #15508

I found out that it works fine if I just trash the filters. I did not need them anyway.
Thank you for your answer.

Edit:
I ran into this problem again today without filters. I am not a pro like others here but want to share my solution. Just add in default view:
$session = JFactory::getSession();
$session->set('limit', 100);

to change default limit of 20 to 100

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

Last edit: by medienmodernisierer.
  • Page:
  • 1
Time to create page: 0.056 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started