Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I'm working on exporting and importing menus. Those menus contains levels and sublevels.
I'm using menu_firstchild
for each of these sublevels.
The problem is when I export those menu items, there is only one menu item '<firstchild>
' exported.
This is because the export is based on the path.
My idea is to add the possibility to add a new argument in the parameter, so the path will be unique, like this:
<firstchild>/1
<firstchild>/2
<firstchild>/bla
The patch is following.
Comment | File | Size | Author |
---|---|---|---|
#1 | 0001-1454116-Enable-a-wildcard-to-export-import.patch | 3.06 KB | Pol |
Comments
Comment #1
PolPatch for latest 7.x-dev version.
Comment #1.0
PolUpdates
Comment #2
DuaelFrGreat minds think alike !
I was thinking to make something like you did but more like
<firstchild:random-string>
.I think this might be done automatically to allow administrators to set it and forget it. The random string could be automatically generated when menu item form is submitted and just cleaned when shown in the field.
In favor of this feature I will add that this will unlock a lot of issues related to breadcrumbs.
+1 RTBC for me for this issue
Comment #2.0
DuaelFrUpdated issue summary.
Comment #3
Chris Matthews CreditAttribution: Chris Matthews commentedThe 7 year old patch still applies cleanly to the latest 7.x-1.x dev snapshot and works great for me so changing the status to RTBC. Unfortunately, the last stable release was in November 2011 so not sure when this will be included.