[wp-trac] [WordPress Trac] #11817: Better Menu Management

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 9 07:29:23 UTC 2010


#11817: Better Menu Management
----------------------------+-----------------------------------------------
 Reporter:  scribu          |       Owner:  scribu  
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  3.0     
Component:  General         |     Version:          
 Severity:  normal          |    Keywords:          
----------------------------+-----------------------------------------------

Comment(by ryanhellyer):

 Replying to [comment:17 filosofo]:
 >  * ''Final markup'': how the menu is rendered (a list, or nested divs,
 etc.)

 Unordered list or a definition list are the only two real options here at
 the moment. Unordered lists are the standard approach used by most people
 so would make a lot more sense I think. Having said that, HTML5 is on the
 way and I'm sure there will be those within the next your or two who will
 start making early use of the <menu> tag, so the ability to easily change
 the wrapper tag(s) would be great. wp_page_menu() gives the ability to
 control the class, but to remove the entire DIV or UL you need to use a
 filter which is slightly messy. If it didn't add to much complexity, then
 the ability to control the tags used would be darn handy. Something like
 the following for example:

 {{{
 #!php
 wp_custom_menu( 'markup=<div id="nav" class="sf-hover"><ul>' );
 }}}

 Which would output the following:

 {{{
 #!html
 <div id="nav" class="sf-hover">
         <ul>
         <li><a href="#">bla</a></li>
         <li><a href="#">bla</a></li>
         <li><a href="#">bla</a></li>
         </ul>
 </div>
 }}}

 Replying to [comment:17 filosofo]:
 >  * ''Styling and behavior'': CSS and JavaScript affecting menu markup.
 (In my opinion these are best left to the theme.)

 Definitely not something for core. I guess the Superfish jQuery plugin and
 a Suckerfish script '''could''' be added as built in scripts for themes to
 utilize, but they still seem a bit too much like theme related features.
 Each theme is likely to want to implement them in a slightly different way
 anyway.

 Replying to [comment:17 filosofo]:
 >  * ''What do you think users typically want?''

 Drag and drop interface to arrange their own menu of pages and categories.
 They also want the ability to add all sorts of other stuff, but that's
 best left for plugins IMO. They also want the ability to add multiple
 menus, not just one or two.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11817#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list