Closed (fixed)
Project:
Drupal core
Component:
book.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2005 at 17:46 UTC
Updated:
8 May 2005 at 13:00 UTC
Jump to comment: Most recent file
Line 588 should be made to output the tree navigation within a
new line 588:
return '<div class="menu"><ul>'. $tree .'</ul></div>';
You are still able to format the book tree navigation different to the core navigation block as this tree is a child of css class 'book-block'.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | book_28.patch | 558 bytes | killes@www.drop.org |
Comments
Comment #1
killes@www.drop.org commentedHere's the patch.
Comment #2
dries commentedWhere does Drupal core emit a class="menu" ?
Comment #3
jhriggs commentedLine 89 of menu.module in menu_block():
Should the change maybe be made to theme_menu_tree() instead to take care of all of them at once? And if so, should the class be called "tree" rather than "menu"?
Comment #4
buddaClass "tree" would be good. But would this change break any existing themes?
Also - the tree menu is used within the book pages at the footer to show nested pages - so would you want that to be within the same class?
Comment #5
Stefan Nagtegaal commentedWhy don't we remove the menu-<div>??
We can style it using .block-user etc, right?
Stefan.
Comment #6
moshe weitzman commentedStefan - menus can be used anywhere. the user block is just the most common place to see one. that div is appropriate.
Comment #7
dries commentedCommitted to HEAD.
Comment #8
(not verified) commented