by fonny on Sat Oct 29, 2005 11:35 am
Got it.
In components/com_content/content.php near line 1057 add twice '. $xwhere' to the sql query.
// loads the links for Next & Previous Button
if ( $params->get( 'item_navigation' ) ) {
$query = "SELECT a.id"
. "\n FROM #__content AS a"
. "\n WHERE a.catid = $row->catid"
. "\n AND a.state = $row->state"
. "\n AND ordering < $row->ordering"
. ($access->canEdit ? '' : "\n AND a.access <= $gid" )
. $xwhere
. "\n ORDER BY a.ordering DESC"
. "\n LIMIT 1"
;
$database->setQuery( $query );
$row->prev = $database->loadResult();
$query = "SELECT a.id"
. "\n FROM #__content AS a"
. "\n WHERE a.catid = $row->catid"
. "\n AND a.state = $row->state"
. "\n AND ordering > $row->ordering"
. ($access->canEdit ? '' : "\n AND a.access <= $gid" )
. $xwhere
. "\n ORDER BY a.ordering"
. "\n LIMIT 1"
;
fonny