<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Crispy</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Crispy"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Crispy"/>
	<updated>2026-09-07T00:39:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Using_JPagination_in_your_component&amp;diff=16087</id>
		<title>J1.5 talk:Using JPagination in your component</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Using_JPagination_in_your_component&amp;diff=16087"/>
		<updated>2009-10-28T11:49:55Z</updated>

		<summary type="html">&lt;p&gt;Crispy: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This code does not work correctly as it stores the limitstart into a session variable.  &lt;br /&gt;
So, when clicking upon the first item in your pages list, no limitstart variable is present and so the previously saved limitstart value is reused.&lt;br /&gt;
&lt;br /&gt;
ie. you can go to pages 2, 3, etc. but not back down to 1.&lt;br /&gt;
&lt;br /&gt;
A work around I have used is to always get the value from the Request object.&lt;br /&gt;
&lt;br /&gt;
//$limitstart = $mainframe-&amp;gt;getUserStateFromRequest($option.&#039;.limitstart&#039;, &#039;limitstart&#039;, 0, &#039;int&#039;);&lt;br /&gt;
&lt;br /&gt;
$limitstart = JRequest::getVar(&#039;limitstart&#039;,0);&lt;br /&gt;
&lt;br /&gt;
Confirmed and fixed.  Thanks.  [[User:Chris Davenport|Chris Davenport]] 23:03, 31 May 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
I have one question&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The example changes to the model seem to call the query twice, once with and once without the LIMIT. Should this not use the same SQL_CALC_FOUND_ROWS method mentioned in the &amp;quot;Examples with JDatabase&amp;quot; section? [[User:Crispy|Crispy]] 11:49, 28 October 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Crispy</name></author>
	</entry>
</feed>