Posted by abelb on September 11, 2009 at 1:13am
Hi friends,
i am stuck! i have 600 nodes that i imported from a spreadsheet using node import and now i want to assign them menu link titles and the parent item without having to edit each individual node. is there a module to do this?
I have looked into Views Bulk Operations (where it would be awesome to be able to do this but i couldnt figure out how...) and node hiearchy but neither really do what i am exactly trying to do.
thanks for any assistance!
andrea

Comments
Just a wild guess - try Menu
Just a wild guess - try Menu Node Views with Views Bulk Operations?
Node Import has that functionality
Whatever version I have of node import seems to have that functionality built in, at least if menu.inc is any indication. If you don't find any module that does exactly what you want, you might try creating another column in the spreadsheet for the menu title and then re-importing. If the parent items are already there, you can make a column for that too; if not, just make a separate menu for them and then move the items around later - easier, perhaps, than editing every node. At least in Drupal 6 it would be I think.
Here's one that claims to do what you want
I'm wanting to do the exact same thing - and just found this: http://drupal.org/project/menu_import. Haven't tried it yet, but believe it will do the trick ... Hrm... just realized it is for 5.x.
Read this post: http://drupal.org/node/368728 and it's comments to get the functionality you want. I'm running the April '09 dev version of node_import. It comes with the menu.inc file, but the functions are disabled. Copy in the menu.inc found in this post and comment out the dpm() call as indicated in the comments. Still testing to make sure it will work..
Module that might help
I just added a project for a module that I wrote because I needed to do something similar to what you're trying to do. It is an action that lets you set the parent for a node's menu item. You can use it with Views Bulk Operations to set the menu parent and, by default, it creates a menu item with the same title as the Node's title (if a menu item doesn't already exist). You can find the project at http://drupal.org/project/menu_parent_action
Hope this helps,
Geoff
Node Link Generator
I've created Node Link Generator for this need:
https://www.drupal.org/sandbox/davidfiaty/2827938
Just select the nodes you want to create links for at admin/content and validate. A form will be displayed with options to choose the target menus.
It doesn't manage parent/child relationships but if you have ideas about how this should be done from the user point of view, you're very welcome to make suggestions. I will probably add the ability to choose a parent menu item for the links generated.