Set pagination limit joomla hosting
I'm a bit confused.
When I look at the link created by pagination in the front end, I see a query parameter called start included in the individual page number links and Start and End links.
However, the method populateState in the base JModelList class looks for limitstart if $this->context has a non null value.
Since the base constructor for JModelList sets $this->context to be equal to
I would be really grateful if someone could explain why things are done this way, and what I have to do to get populateState and pagination to agree on the variable that holds the row that the page should start on.
asked May 15 '14 at 19:27
If you using default pagination by calling $pagination = $this->get('Pagination'); in view file then required state vars in model's populateState method are easy to understand in this way - $limit= $app->getUserStateFromRequest('global.list.limit', 'limit', $app->getCfg('list_limit'), 'uint'); $this->setState('list.limit', $limit); $limitstart = JRequest::getUInt('limitstart', 0); $this->setState('list.start', $limitstart); - dev-m May 15 '14 at 21:17
so as i replied this is what you will basically do by overriding populateState() method in your model class extended from jmodellist, else you would be messed up with parent class codes. - dev-m May 16 '14 at 21:48