I love the nice menus project but I'm finding one difficulty - using it with content that's in books. Any chance of having this added in? Books and menus have much better integration now so it doesn't seem like it would operate much differently, almost just need it in the drop down as a choice on the block configuration page. Books now work in DHTML menus so the framework's there at least.

Comments

koorneef’s picture

See my comment at: http://drupal.org/node/236418#comment-1024401

It's surprisingly simple for D6.

add1sun’s picture

Version: 6.x-1.1 » 6.x-2.x-dev

I'll have to play around with it and see about adding this to the GUI interface. Shouldn't be too hard but I need time to sit down and look at it. Marking for 6.x-2.x since that is where all new features go.

btopro’s picture

sounds great!

It was recently implemented in the Menu block module and works great! (http://drupal.org/node/330978#comment-1135749)

All you have to do is add it to the interface as an option and Drupal naturally renders it as if it's a menu since they are driven by the same system

btopro’s picture

Here's the function used in menu block to accomplish this

/**
* Returns a list of menu names implemented by all modules.
*
* @return
* array A list of menu names and titles.
*/
function menu_block_get_all_menus() {
static $all_menus;

if (!$all_menus) {
// Include book support.
if (module_exists('book')) {
module_load_include('inc', 'menu_block', 'menu_block.book');
}
// We're generalizing menu's menu_get_menus() by making it into a hook.
// Retrieve all the menu names provided by hook_get_menus().
$all_menus = module_invoke_all('get_menus');
asort($all_menus);
}
return $all_menus;
}

aren cambre’s picture

For clarity, DHTML Menus does not work on books per #579394: Doesn't work on book navigation.

add1sun’s picture

Status: Active » Closed (won't fix)

I'm not going to take time to work on this, so I'm closing it. If someone wants to reopen and supply a patch, then I'd entertain the feature.

hazah’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Status: Closed (won't fix) » Active

A bit of an oldie, I see, but this has come up for me. It'll probably come up for any module that attempts to do similar things to book... namely maintain a menu behind the scenes. So it would be really useful to include the book menu in the drop-downs, for one, it's the perfect starting point.

For instance, my most common use case is to slice up the entire site into a book-per-section scheme (yes, not exactly its stated purpose, but all the module's doing is manipulating the menu system behind the scenes). The main menu gets the top levels of the books, and this is where things start to get messy on the admin UX, you end up maintaining two menus for no real reason. With this, you could potentially have one book, and nice menus could cover the main navigation.

I can imagine someone (perhaps me, as it's a feature I'm generally in need of) will take the book module's concepts and create a more generic "sections" module for the same purpose.

I wouldn't mind thinking through this and submitting a patch. Only caveat is that I need to find the time to do so. Meantime, lets leave this as active for the purpose of continuing the discussion thread.

Cheers.

astonvictor’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

I'm closing it because the issue was created a long time ago without any further steps.

if you still need it then raise a new one.
thanks