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
$this->context has a
non null value.
Since the base constructor for
$this->context to be equal to
<component_name>.<model_name> it looks like in the default case
$this->context will not be null, so populateState will usually assign the value from
getUserStateFromRequest() as the snipped code shows:
$value = $app->getUserStateFromRequest($this->context . '.limitstart', 'limitstart', 0); $limitstart = ($limit != 0 ? (floor($value / $limit) * $limit) : 0); $this->setState('list.start', $limitstart);
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.