×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Pagination problem
Andres Maeso
Platinum Member
Posts: 337
7 years 1 week ago #1326
by Andres Maeso
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.
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!
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.
Stargazer
New Member
Posts: 3
1 week 3 days 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);
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.140 seconds