Closed (fixed)
Project:
Submenu Tree
Version:
7.x-2.3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 May 2011 at 11:46 UTC
Updated:
30 Aug 2013 at 03:45 UTC
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

| Comment | File | Size | Author |
|---|---|---|---|
| submenutree_book.tgz | 1.42 KB | dman | |
| submenutree_book-after.png | 128.38 KB | dman | |
| submenutree_book-before.png | 42.77 KB | dman |
Comments
Comment #1
bengtan commentedHi,
Interesting idea.
Undecided whether this should be an officially supported part of submenutree.module, so just leaving it as is for now.
Thank you.
Comment #2
devin carlson commentedThat'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.
Comment #4
dman commentedYears later, I do a D7 upgrade ...
https://drupal.org/project/submenutree_book
Just FYI.