I haven't found a tweak for this for 6.10, and didn't want to mess anything up... How can I make the Next, Up, and Previous links appear at the top of each Book page as well as the bottom?

Thanks!

Bradford

Edited by: VM; moved to appropriate forum

Comments

wibe’s picture

This has been asked several times, and after trying several approaches, I solved it as follows. I created a new block that is displayed in my theme's content_top region. The block executes this php code:

if (arg(0) == 'node' && is_numeric(arg(1))) {
    $node = node_load(arg(1));
}
  return theme('book_navigation', $node->book);

There is one minor problem with this, though: preprocess_book_navigation() adds link elements into the HTML header which indicate document relationships (prev, next, etc); since this function is now called twice, there are duplicate link elements. Too minor an issue for me to worry about right now...

justbradford’s picture

Thanks, wibe! I will try it...!

justbradford’s picture

Was going to add the block; but has the "PHP code" input format gone away in 6.12? I can't seem to get that option to display, although my 6.10 site has it.

justbradford’s picture

I didn't have the PHP filter module enabled...will try again...

justbradford’s picture

Got it to work in the header...which of course didn't look so good; but I can see how it might be tweaked in e.g., the content_top area. FYI, also noticed (new to 6.12?) a "Book Navigation" item in the Blocks list...!

aotus’s picture