Opened 15 years ago
Last modified 6 years ago
#12934 assigned enhancement
Allow a menu to be added as a menuitem to be a submenu.
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.0 |
Component: | Menus | Keywords: | needs-patch |
Focuses: | administration | Cc: |
Description
Add capability to add a menu as a menuitem to be a submenu thus allowing multiple menu items to share the same submenus.
See reference in April 8 devchat:
https://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2010-04-08&sort=asc#m106225
Change History (7)
#2
@
15 years ago
- Component changed from General to Menus
- Milestone changed from Unassigned to 3.1
- Owner set to ryan
- Type changed from defect (bug) to enhancement
- Version set to 3.0
#4
@
11 years ago
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 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>
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
Ref #12900