Hi there,

I managed to get custom pagers to work on my nodes, but only after removing argument code from the view I'm using. Currently I've got images in a view (in this case each image is a custom content type with a cck image field), and the view is set only to display nodes of a specific user (uid arg passed in the view url ie: - /user/$arg/myview, where $arg is UID ), so the view will show only the images belonging to that user. I would like to have a custom pager on each node that will (after one node is viewed) display the images associated only with the previous node author.

Here were the arguments that I have in my view:

Argument- User: UID is Author

Arg Handling code:

global $user;
// Make the first argument the current user if not already set
if (!$args[0]) {
$args[0] = $user->uid;
}

The custom pager will work if I remove the argument, but the it displays all nodes of that type regardless of author.

Is there a way to make this work in this way?

Thanks for your help!

Comments

TC44’s picture

Status: Active » Closed (fixed)

Ok, I figured out what I've done wrong. I needed to pass the needed arguments in the custom pagers setup to the view. That's where I went wrong. It all seems to be working now!