From: <no...@so...> - 2002-01-29 10:34:14
|
Bugs item #510072, was opened at 2002-01-29 02:33 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=426093&aid=510072&group_id=39838 Category: Interface (example) Group: v1.0 (example) Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Gigantic Node Lister forgets nodetype Initial Comment: There's a bug in the Gigantic Node Lister, which causes it to forget what nodetype you were listing when you page forward to the next 100. It's a pretty easy fix, you just need to put the query parameters $group and $type in the URL string for the "Next XXX" link... This is what I did: 86: my $type = $query->param('whichtype'); 87: my $group = $query->param('whichgroup'); 88: 89: $type ||= "alltypes"; 90: $group ||= "nogroup"; 91: 92: $nav .= "<a href=" . 93: urlGen ({node_id => getId ($NODE), next => ($prev) }) . 94: ">Previous " . ($offset-$prev) . " entries...</a>" 95: if ($offset > 0); 96: 97: $nav .= "</td><td align=center>($offset-" . ($offset+int(@$ref)) . 98: ") of $totalRows</td><td align=right>"; 99: 100: $nav .= "<a href=" . 101: urlGen ({node_id => getId ($NODE), next => $next, whichtype => $type, whichgroup => $group}) . 102: ">Next " . ($totalRows - $next > $limit ? $limit : $totalRows - $next ) . 103: " entries...</a>" if ($next < $totalRows); Note in the last urlGen call, the addition of the whichtype and whichgroup key/value pairs, and the above declarations and assignments of $type and $group from the $query structure. I know, it's simple, but it's definately nicer this way :) ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=426093&aid=510072&group_id=39838 |