I have two content types - parent and child. There is a one to many relationship (many children to one parent). I am migrating this content, and the current situation is that that node reference field is on the child, pointing to the parent. However, I may be able to change this to have a node reference field on the parent set to an unlimited number of items (though its probably better if I keep the existing "schema" to avoid problems after migration).

I would like to create a node edit form for the parent. In this node edit form, I want to have the child node edit form embedded on the same page, either as a replacement for the node reference field, or as a view displaying node edit forms of existing children of parent. I will create an interface that displays the child node edit form(s) when the user clicks on an accordion-like button at the top of the form, and beneath the form, a "Add another", which creates a new child node add form.

My first thoughts are to over-ride the template of the node reference field to embed the node edit form in the theme. However, this method seems to have potential side effects that have to be dealt with, as the current "schema" is the child nodes pointing to the parent nodes, which I prefer to keep.

My ideal solution is to use panels, but after playing with panels and doing some googling, I haven't found a solution that is specific to my needs.

How do I embed the form (either an existing node edit form or a node add form with a node reference field pre-populated) using panels? Is that even possible? If not, what is the best way to accomplish this?

  • 2
    No need for panels - install Entity Reference and Inline Entity Form, and voila
    – Clive
    Jan 30, 2015 at 15:00

1 Answer 1


You can achieve this by Installing Entity Reference and Inline Entity Form

  • Thank you so much. This looks like it is exactly what I need. Jan 30, 2015 at 15:40
  • Well I thought of the answer but Clive already wrote it in his comment. Anyway, I always use this two modules.
    – pbonnefoi
    Jan 30, 2015 at 15:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.