Menus & menu links can be assigned to a language, but cloning them is tricky because:
* Each menu link within such a menu (or beneath a link) would then need cloning, retaining any link hierarchy.
* Menu machine names are unique keys, so we would have to provide a new menu name. Maybe we could provide a textbox for the new name to be entered, for each menu to be cloned, instead of the checkbox element that we normally show?!
* Menu links can be translated in a variety of modes (including through i18n_string, which is already covered).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | handle_menu_links_creation-2682663-2.patch | 2.19 KB | sastha |
Comments
Comment #2
sastha commentedHi James,
If we create menu links using i18n_string, I believe we have to manually set weight information for each menu link.
Attached is a patch I have created for creating menu links dynamically. Please take a look.
NOTE: Menu links creation code is taken from Node clone module
Comment #3
sastha commentedComment #4
maheshv commented