Thanks so much for that extra hook_submenutree_mlid()!
It's just right to add book support :-)

So, here's a mini-module that extends this module to do the submenu_tree magic on books.

Got a site structure that contains a load of books - for management reasons. And showing teasers of child pages is a nice thing - so nice that we are happy to ditch the normal book nav.

Getting the submenutree to use the book menu not the default menu was pretty simple, thanks to that hook. Slightly messier was getting book.module not to show its normal links, but it's still better doing it here in a module rather than putting logic in the theme.

Before

After

Comments

bengtan’s picture

Status: Active » Postponed

Hi,

Interesting idea.

Undecided whether this should be an officially supported part of submenutree.module, so just leaving it as is for now.

Thank you.

devin carlson’s picture

Status: Postponed » Fixed

That's definitely an impressive display of integration!

From the number of comments on this issue, there doesn't seem to be that much interest in this feature. I'd suggest releasing the module as an add-on module for Submenu Tree. I'd be happy to provide a link and description to the module on the main Submenu Tree project page.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

dman’s picture

Version: 6.x-1.x-dev » 7.x-2.3

Years later, I do a D7 upgrade ...
https://drupal.org/project/submenutree_book

Just FYI.