Closed (outdated)
Project:
Nice Menus
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2008 at 20:46 UTC
Updated:
2 May 2024 at 08:12 UTC
Jump to comment: Most recent
Comments
Comment #1
koorneef commentedSee my comment at: http://drupal.org/node/236418#comment-1024401
It's surprisingly simple for D6.
Comment #2
add1sun commentedI'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.
Comment #3
btopro commentedsounds 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
Comment #4
btopro commentedHere'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;
}
Comment #5
aren cambre commentedFor clarity, DHTML Menus does not work on books per #579394: Doesn't work on book navigation.
Comment #6
add1sun commentedI'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.
Comment #7
hazah commentedA 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.
Comment #8
astonvictor commentedI'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