By mr.morton on
Hi,
I created a site with about 10 different nodes of the type page, all of these pages I added to a menu called Main Menu.
So now I need to be able to navigate the menu by next and previous node. Let's say the menu is like this.
1. Node page 1
2. Node page 2
3. Node page 3
4. Node page 4
5. Node page 5
6. Node page 6
7. Node page 7
8. Node page 8
9. Node page 9
10. Node page 10
So when you are on page 3 I want two link in the bottom of the page a prev-link to page 2 and a next-link to page 4.
Anyone done something like this or have any idea how to do it?
Kind regards
Morten Madsen
Comments
=-=
sounds like you wanted your content type to be book.
Enable the book module...
Enable the book module... and then edit each node and structure them within a book.
A problem you'll run into though (with your primary navigation) is that there will need to be a parent node. For example:
Snyder Technologies
fixed it without the book module...
Tried the bookmodule, but I couldn't make it look and exactly the way i wanted,
so I made a function which returns the previous and next link from a given menu and
current page of the menu. Now I how 100% control of content and how it will be displayed.
Kind regards
Morten
Maybe you could share the
Maybe you could share the code so that other people could benefit from it.
-----------------------------------------
Joep
CompuBase, Drupal, websites and webdesign