Book navigation with Nice Menues

jordibares - July 7, 2008 - 21:15

Hi, i am trying to get a book navigation to appear as nice menus but the code presented in page http://drupal.org/node/134510 does not work as expected in my case.

Here is the error i get

user warning: Unknown column 'b.parent' in 'field list' query: SELECT n.nid, n.title, b.parent, b.weight FROM node n INNER JOIN book b ON n.nid = b.nid WHERE n.status = 1 ORDER BY b.weight, n.title in /home/jordi/public_html/graphicschums/includes/common.inc(1537) : eval()'d code on line 37.

Unfortunately i have not dig into PHP yet although i do want so i a bit lost and hopefully someone has gone through this already.

If you want to see how my actual http://drupal.org/node/44648 implementation works just visit

http://www.graphicschums.com

and if you want to see the page with the error

http://www.graphicschums.com/page/test-page

thanks in advance, hopefully i will be helpful to the community too.

:-)

Jordi

Hmmm....

pegleglax - July 7, 2008 - 21:39

Just some directional thoughts....

1) Well I'm sure you already know this but you could create another menu and manually enter each node in the book into it.
2) Have you taken a look at the module Local Menu? http://drupal.org/project/local_menu << This is an AWESOME module...

The code you looked up would be ideal (if it worked...) but you may have to port it if its for 5.x core and you're using 6.x core.
I don't have time right now... but Ill take a look at this later tonight ;)

Simple for D6

koorneef - September 22, 2008 - 19:40

I had some trouble finding an easy solution, but in the end it was very simple.

See the comment in the handbook below:
See: http://drupal.org/node/236418#comment-1024401

Hope it helps !

 
 

Drupal is a registered trademark of Dries Buytaert.