Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#7 | mollio-pagination.txt | 1.44 KB | baluart |
#6 | template.php_2.txt | 5.84 KB | isaacbowman.com |
#5 | template.php_1.txt | 12.54 KB | isaacbowman.com |
Comments
Comment #1
Shiny CreditAttribution: Shiny commentedI 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);
}
Comment #2
Heine CreditAttribution: Heine commentedThat shouldn't work.
Comment #3
Heine CreditAttribution: Heine commentedTo 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.
Comment #4
rkerr CreditAttribution: rkerr commented2 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.
Comment #5
isaacbowman.com CreditAttribution: isaacbowman.com commented4.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?
Comment #6
isaacbowman.com CreditAttribution: isaacbowman.com commentedSweet! 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.
Comment #7
baluart CreditAttribution: baluart commentedHi, 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.
Comment #8
inforeto CreditAttribution: inforeto commentedReporting the code from post #7 worked when tested.
Didn't check beyond those lines.
Comment #9
Southpaw CreditAttribution: Southpaw commentedClosing bug
Comment #10
Southpaw CreditAttribution: Southpaw commentedClosing bug
Comment #11
(not verified) CreditAttribution: commented