By using this tutorial http://blog.urbaninsight.com/2011/09/12/adding-pager-navigation-nodes-drupal-7 I have created next/prev buttons for my images.

But as I have a lot of galleries and I need to filter images not only by node type but also by node reference field value.

The machine name of my field is field_pers_gallery and in phpmyadmin it is assigned to a particular gallery by field_pers_gallery_nid.

I'm note good at creating db query, could anybody help with any advices?

1 Answer 1


I don't know if you managed to get your pager working yet, but I've just modified a piece of code to create a pager based on node reference. You're free to use it as you see fit. You can go to my blog to see it:


  • eventually I used Free Pager module for this. Anyway thank you for your reply I will learn your tutorial
    – moto
    Feb 10, 2013 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.