Pagination doesn't work in the 4.7.0 module. To see this bug go to any page with more than 1 page (like your admin logs) and look at the bottom.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Shiny’s picture

I have a fix.

it's an ugly hack, - - but i havne't RTFM yet and it works

I ripped the old pager_link function from drupal 4.6, and put into the mollio theme so it continues to run..
I'll clean it up later and provide a unified diff or something

inside themes/mollio/template.php
add the following:

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

foreach ($attributes as $key => $value) {
$query[] = $key .'='. $value;
}

$from_new = pager_load_array($from_new[$element], $element, explode(',', $from));
if (count($attributes)) {
$url = url($q, 'from='. implode($from_new, ',') .'&'. implode('&', $query));
}
else {
$url = url($q, 'from='. implode($from_new, ','));
}

return check_url($url);
}

Heine’s picture

That shouldn't work.

Heine’s picture

To add to the above:
- the page numbering is off; always tells '2 of n'.
- the page numbers are scrambled in IE 6/Opera 8.54; overlapping and right aligned.

rkerr’s picture

2 of n? I'm stuck at 1 of n :)

The overlapping numbers sounds like css but could be something to do with the markup as well...
These issues are on my radar now at least and I'll try to get it fixed up soon.

isaacbowman.com’s picture

Title: Pagination doesn't work » Mollio Pagination in the template.php code doesn't work
FileSize
12.54 KB

4.7.2 in IE7 and FF1.5 - pager only displays "1 of 1"

I really like this theme, but my knowledge of php and css is limited. The problem appears to be in the template.php file and not css. I cut/pasted the template.php code for pager from the Antique Modern theme (line 50-172) as it was the closet code style and deleted lines 139-316 from Mollio. The hybrid code did display the pagination correctly but of course it is not styled correctly in the css yet. I attached my hacked template file.

Does anyone know how to correct the original pager php code for Mollio?

isaacbowman.com’s picture

FileSize
5.84 KB

Sweet! The pager works fine now. The solution (found in Mollio 4.7 support) was to simply delete the Mollio pager reference. Just delete lines 139-316 from template.php in the Mollio theme folder and the pagination will show the default style. Personally I like the default look. I have uploaded the file just in case. Will test the theme a little more and then run with it.

baluart’s picture

Assigned: Unassigned » baluart
FileSize
1.44 KB

Hi, delete is not necessary. Only is necessary to modify the mollio_pager() function with the path that I attach. It is a very simple hack of php pagination.

pdta. sorry for my english.

inforeto’s picture

Reporting the code from post #7 worked when tested.
Didn't check beyond those lines.

Southpaw’s picture

Status: Active » Fixed

Closing bug

Southpaw’s picture

Closing bug

Anonymous’s picture

Status: Fixed » Closed (fixed)