Active
Project:
Custom Pagers
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2009 at 01:25 UTC
Updated:
1 Mar 2010 at 20:58 UTC
I'm bashing my head against a wall with this module.
I've wasted 2 hours trying beta1 which didn't work and now 1.x-dev doesn't work either. I've followed the documentation on creating a basic pager.
Doing a node render shows up nothing inside the content array. I thought perhaps views might be at fault so wrote my own php snippet to feed custom pagers the node ids.
<?php
$view = views_get_view('custom_pager_nzpys');
$view->execute();
$node_ids = array();
foreach ($view->result as $node) {
array_push($node_ids, $node->nid);
}
return $node_ids;
?>
Besides that I've tried all the different display options, both content type and php for visibility.
Are there any modules known to conflict with this?
I feel that a dirty hack into page.tpl.php would have been a much quicker way to go. Thanks in advance for any help.
Comments
Comment #1
weblance commentedSame here, I cant seem to get this module to work at all.
Comment #2
keyo commentedI ended up writing my own module in the same amount of time I wasted messing with this one.
I've pasted my code below, maybe someone will benefit from it. I only did this as a last resort and some of it is custom to my content types. Take with a large grain of salt.
Note: You would need to add a line in your theme to "print $node->pager;"
Comment #3
mherchelany status update on this??? I'm having the same issue