The pager_link function ommits the &type argument

lereps - February 13, 2006 - 15:29
Project:Node Type Filter
Version:4.6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:lereps
Status:closed
Description

When you use the node type filter there is a major problem in the pager_link function :
the links to first, previous ... pages ignores the "&type=" argument.

you can fix it by modifying the pager.inc page:

in the function pager_link on line 383 :

replace the line

function pager_link($from_new, $element, $attributes = array()) {
$q = $_GET['q'];

with :

function pager_link($from_new, $element, $attributes = array()) {
$q = $_GET['q'].(($_GET[type])? '&type='.$_GET[type]:'');

#1

NancyDru - January 20, 2008 - 17:44
Status:active» postponed (maintainer needs more info)

Have you got a solution that I can implement in this module? I cannot do a core hack.

Also see: http://drupal.org/node/74257

#2

NancyDru - February 8, 2008 - 12:42
Status:postponed (maintainer needs more info)» closed

If you have some follow-up, please reopen this issue.

 
 

Drupal is a registered trademark of Dries Buytaert.