Add Back/Next Links to Nodes

Last modified: October 14, 2008 - 10:33

Sometimes you want to be able to add back/next links to a node. You can do this with a book, but you have to manually touch each node you want in the book to add it to the outline. Using views, you can define filtering and sorting criteria to automatically pull together a group of nodes and add the back and next links to them.

  1. Go to admin/build/views and create a new view.
  2. In the 'Page' section check that it should be displayed as a page, give it a url, select the option to display it as a full node, and set it up to show one node per page.
  3. Add filters to limit the nodes returned to the ones you want. You'll probably want Node:Published and Node:Type (mark the specific content types you want grouped together). You can use the nodequeue module to create an arbitrary list of nodes to filter by.
  4. In the 'Sort' section add in the fields you want to sort on, put the sorts in the right order, and indicate if they should be ascending or descending.
  5. Save the view, then go to the url you set up in the view and you will see one node on a page, with back and next links.

See also: Adding <previous> and <next> links

iantresman - May 7, 2008 - 22:06

See also, under HowTos » Creating, displaying and combining content:
Adding and links to image nodes using Custom Pagers, Tokens and views

(Programming required)

adding links

wmike - November 29, 2008 - 09:00

Hi,

New to Drupal and views. Using Drupal 6.6

Can't get this to work at all - just my understanding I think.

I'm trying to put a block on each page that uses my very simple Taxonomy terms:

  • Articles
    • Business
    • Website design

The block on the Article pages needs then to have either 'previous<<>>next' links or 'previous page title<<>>next page title'.

Any ideas, please?

Cheers!

Mike

This could be just what i'm

superjames - December 20, 2008 - 01:51

This could be just what i'm looking for...but gonna try with Views 2 and D6.
Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.