Is the paging module broke? Has any one been able to use it? I have it installed but it's not working for me - it doesn't break the content into multiple pages. What gives? Are there any limitations - will it work for both pages and stories content types? The documentation on it is non-existent.

Comments

zwhalen’s picture

Hi. I had the same problem a couple of days ago, and after monkeying around a bit, I got it to work. If yours is in fact the same problem, I'm guessing you downloaded the 4.6.0 version and it doesn't work with your 4.6.6 drupal?

If you're not afraid to hack around with the code in paging.module, here's what worked for me: (Disclaimer: this is off the top of my head and I'm not really a programmer anyway so I may be doing something unstable to begin with and I may not be remembering correctly on top of that. Anyway, it's probably worth a shot.)

First, change the call to check_markup() to check_output() since there is no check_markup() in 4.6. That was on or around line 56.

Next, on or about line 50, change the pager_query to

pager_query("SELECT 1", 1, 0, "SELECT " . count($node->pages));"

Finally (I think), change the call to theme_pager with something like:

$pager = theme('pager', NULL, 1, 0);
$node->body .= $pager;

Hope that all makes sense. No idea if it will work in your situation, but it worked for me so it's probably worth a try?

Good luck.