[support] Adding next/prev links to node view

Andrew Fowlston andrew at Pedalo.co.uk
Thu Oct 21 11:01:48 UTC 2010


Hi all,

I have a view that displays a chronological list of nodes of type news_item. I'd like it so that when the user clicks on a link to a particular article, the page they see has a next/prev link. I can see a number of ways to do this: could folk let me know of any issues or other approaches? Many thanks.

1. Use a custom preprocess function to get the appropriate link and update the template to output it. Don't want to reinvent the wheel!

2. Use a 1-item view to display a node, and use View's pager. I read about this method when searching around. I'm not sure how I would create the link to the individual item (ie I'd need an NID -> views page no. conversion), but I'm sure it's doable.

3. Use custom_pagers. It's beta now and has 16 open bugs for 6.x. Haven't really investigated it though.

4. Use prev_next. It's a dev version, haven't tried it out.

Can anyone share some ideas?

TIA,

Andy

. . . . . . . . 
Andrew Fowlston
020 8747 5068
andrew at pedalo.co.uk
www.pedalo.co.uk

Pedalo – Web Services | Graphic Design | Online Marketing
Please consider the environment before printing this email

This email is intended only for the above named addressee/s. This email may be confidential or legally privileged. If you have received this email and you are not a named addressee, you must not use, copy, distribute or disclose the email or any part of its contents or take any action in reliance on it. If you have received this email in error, please email the sender by replying to this message and delete it from your system. All reasonable precautions have been taken to ensure no viruses are present in this email. 

pedalo limited cannot accept responsibility for loss or damage arising from the use of this email or attachments and recommends that you subject these to your virus checking procedures prior to use. Any views or opinions presented are solely those of the author and not necessarily those of Pedalo Limited


This message has been checked for all known viruses by NOD32 Antivirus Software





More information about the support mailing list