While creating a new node, I'd like to pass a parameter in the URL: node/add/page?plid=123
in order to put the newly created node in this menu item as its child.
I tried to hook_form_alter()
the node form but I couldn't populate the menu part, also I'd like to hide this part to the end user as they shouldn't alter it.
Should this be done in a hook_node_insert()
with something like this answer: How to enable menu link when creating a new node ?