× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

Pagination problem

7 years 10 months ago #1326 by Andres Maeso
Replied by Andres Maeso on topic Pagination problem
Hi John

You are probably right and the technical team of Component Creator could share some answers in the forum. It wasn't created for that purpose though and I come around often just to see if there's any bug reported. If there's a bug, it should be reported using the contact form as it's the best way for our developers to fix them as they are found.

Thanks for sharing your solution!

Andrés Maeso
Customer relations manager at Joomla Component Creator.

This email address is being protected from spambots. You need JavaScript enabled to view it.

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

10 months 1 week ago #10141 by Stargazer
Replied by Stargazer on topic Pagination problem
In Joomla 4 components look in the model file for your view, look for THIS code:

protected function populateState($ordering = null, $direction = null)
{
// List state information.
parent::populateState('a.id', 'ASC');

$app = Factory::getApplication();
$list = $app->getUserState($this->context . '.list');

$value = $app->getUserState($this->context . '.list.limit', $app->get('list_limit', 25));
$list = $value;

$this->setState('list.limit', $value);

Change the $value variable to an integer and it will display that number of results, for example:

$this->setState('list.limit', 50);

If you change the value to "null" it will return all of the results, for example:

$this->setState('list.limit', null);

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

Time to create page: 0.152 seconds
Powered by Kunena Forum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.