views:

71

answers:

4

hi,

I would like to add previous and next buttons to each node of my Drupal website.

These links are supposed to point to the next node in the website content.

How can I make it ? Thanks

+2  A: 

The Custom Pager module does exactly what you want. You can use a view to define which nodes are the next/previous one.

If you're using the Image module, the setup of the custom pager for images is in the documentation.

Fabian
A: 

other way: "book" module in drupal package.

Nikit
A: 

TIMTOWDI, man. Id use an option that requires no extra modules, but instead some knowledge of how Drupal database is built (plus some basic SQL):

  • Create a custom template for your node type,
  • In the template, add a database query to fetch the next and previous nodes, according to your necessities (filter by whatever you want),
  • Extract the URLs of those two nodes,
  • place the links where you need them.

It's slightly complex, but ultimately flexible ;)

mingos
A: 

Since we seem to be listing options here: Previous/Next API

marcvangend

related questions