Very helpful module indeed, but I would like to ask you to add one more feature. When a node reference field links to more then one content type then noderefcreate should give you the opportunity to decide which type the new node will be.

Comments

mitchell’s picture

I like this idea. Patches welcomed.

Flying Drupalist’s picture

Nice idea.

Fidelix’s picture

Sub...

akalata’s picture

Any ideas on how to approach this on a conceptual level within the code?

For the UX side, I can see some sort of confirmation on initial node save (which is when I'm guessing the nodes are created?), where you can then select the node type.

Or, a different workflow might be a link (per type) that takes you to the node/add page, which would loop back to your current node edit/add page and autofill the next empty field.

jackbravo’s picture

An approach to solve this could be to, if no match is found, inject in the options values like:

- The title you entered [content type 1]
- The title you entered [content type 2]

That could mean implementing our own node_reference_potential_references() or maybe just our own node_reference_autocomplete function where we add some values to the options.