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 . it looks like in the default case $this->context will not be null. so populateState will usually assign the value from $_GET['limitstart'] using getUserStateFromRequest() as the snipped code shows:

Set pagination limit joomla hosting query parameter called start included

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

Related articles

Get module id joomla hostingLast updated January 17, 2017 11:08 Ecwid is a great tool to add an e-commerce functionality to your Joomla site. Ecwid is very different from usual "Joomla" shopping carts and has these unique...
Joomla hosting australia zoo"Joomlart makes building and designing Joomla site so easy. With cool designs and superb support, Joomlart is the best place to get solution on Joomla's web design." Mark Lee. Co Founder @...
Pack langue fr joomla hostingWhen we installed Joomla 3.0. we chose English as the default language. Joomla 3.0 is able to support different languages. In this tutorial we'll show you how to change you site language in...
Rating tool joomla hosting3283 votes 4.89 of 5 InMotion provides the most reputable web hosting services in the Joomla community. Almost all of its customers are highly satisfied with the professional Joomla hosting...
Site internet fait avec joomla hostingThis website in hosted on web server located in Paris, France. SEO Tip: Hosting location can influence search engine rankings. General rule is: try to host your website in country where your...