When creating nodes through profiler, you can set the node to appear in the menu. However, it's not possible to set the menu parent item, so all nodes with enabled menu links are flat and appear in the root level of the menu.
It would be really awesome to be able to specify something like:
nodes[foo][type] = page
nodes[foo][title] = Lorem ipsum
nodes[foo][menu][enabled] = 1
nodes[foo][menu][link_title] = Lorem ipsum
nodes[foo][menu][menu_name] = main-menu
nodes[bar][type] = page
nodes[bar][title] = Delor sit amet
nodes[bar][menu][enabled] = 1
nodes[bar][menu][link_title] = Delor sit amet
nodes[foo][menu][menu_name] = main-menu
nodes[foo][menu][parent] = bar
So in this case, your menu would be built out as
Comments
Comment #1
jyee commentedPatch attached.
Comment #2
lotyrin commentedComment #3
jhedstromRe-rolling #1.
Comment #4
jyee commentedCommited re-roll from #3