Hi,
the child nodes of a book page are printed out after the main content. I would prefer them before it, directly after the title. I cant find a way to do this using Zen theme without hacking the core. Any ideas?
thanks

Comments

dman’s picture

Hm, there's no theme_book_page() to over-ride, but the $node->content allows for this to be re-arranged.

I think that if you find a way to change

          $node->content['book_navigation']['#weight'] => 100 ;

to

          $node->content['book_navigation']['#weight'] => -1 ;

that might do it. Dunno which callback you get a chance to do that in however.
Hm. That would also put the prev/next links up the top too. Probably unwanted. Although you CAN over-ride theme_book_navigation().

So. It would take some tweaking, yeah. :-{

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

stevepowell’s picture

thanks, yes I wouldnt mind the previous/next links being up top. where do you think I should put the code to change the navigation weight, in the main template.php?

dman’s picture

Couldn't say. I guess you should be able to implement module hooks from a theme file. Never tried.

Probably one of the nodeapi phases. Sorry, I've never actually messed with that bit since 4.6, and it's changed a lot since then. probably 'view'.

Sorry I can't be a bit more informative, but it's a big ball of string.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/