[wp-trac] [WordPress Trac] #12934: Allow a menu to be added as a menuitem to be a submenu.

WordPress Trac noreply at wordpress.org
Wed Feb 5 22:11:02 UTC 2014


#12934: Allow a menu to be added as a menuitem to be a submenu.
--------------------------+-----------------------------
 Reporter:  mikeschinkel  |       Owner:  ryan
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Menus         |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------------

Comment (by Faison):

 I know this is old, but I thought I'd jump in and say that I've needed
 this exact feature on a few sites now. At first I felt embedding submenus
 would just be nice to have, but after a while I received a nice message:
 "You are approaching the post variable limit imposed by your server
 configuration." Embedding submenus became a requirement for me.

 So I created my own plugin to allow Nav Menus to be used as Nav Menu
 Items, it's called [http://wordpress.org/plugins/navception/ Navception].
 I don't know if pasting a link to that plugin is good enough to close this
 ticket, but I would still like to see Menus as Nav Menu Items in core.

 While I was writing Navception, I ran into two things that I had to ignore
 or write elaborate work arounds for, so I feel we'd need to address these
 before being able to add Menus as Menu Items. Those two issues are:

 1 - WordPress doesn't allow you to completely change the contents of an
 expanded Menu Item while editing menus (explanation below)
 2 - I had to add code to strip out the start and end <li> tags that are
 hardcoded in Walker_Nav_Menu, so that I didn't end up with a structure
 like `<li><li><!-- sub menu --></li></li>`

 [[Image(http://faisonz.com/trac-imgs/nav-menu-item-expanded.png)]]
 As you can see from that screenshot, nothing useful except the "Remove"
 link is displayed. It would make much more sense to be able to gut out
 that content and replace it with a small tree view of the items included
 in that submenu, but currently that content is pretty hardcoded in `wp-
 admin/includes/nav-menu.php`

 Either way, let me know if I can help as I would definitely enjoy helping!

 Thanks,
 Faison

--
Ticket URL: <https://core.trac.wordpress.org/ticket/12934#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list