17488 Posts in 4473 Topics by 1978 members
|Go to End|
7 August 2008 at 4:02pm
just working away on a site and it has controls for the user to move forward and back throgh the page siblings. I took a look at the sibling control posted in the doku but that will list all siblings.
Is there any way to identify the current page and using that as the offset? This could allow for the query to be limited to 1 and the offset set to pickup the next/previous page only.
7 August 2008 at 4:20pm
Ok, probably the best thing to do is count the rows up until the item ID then use that as the offset. Right?
$sqlQuery = new SQLQuery(
"ItemName WHERE ItemName.ID < ".$this->ID.""
|Go to Top|