Hello,

I am trying to create a new node from another node that has an entity reference field.
The way I do it is through the prepopulate module and the prepopulate entityreference module.
I tick Enable Entity reference prepopulate
but the
create field and edit field don't show in the form.

I have used both prepopulate entityreference module versions 1.0 and dev. I use the rc3 entity reference module version.
I tried locally in another instalation and it works, but in my server instalation it doesnt.

do you know how it can happen?
Thanks in advance

Comments

drupalerocant’s picture

Well, it was a confusion from writing too quick.
The problem is that the links Create node and Edit node don't appear

kclarkson’s picture

Title: create fiel edit field dont show » Create Content Field on Edit Form Does not Show

I am having trouble with this module as well.

I have enabled the Entity Reference Prepopulate but cannot seem to get the Create Node link to show on the add new content.

In the README.txt you say tIn order to pre-populate an entity reference field you have to supply the
paramater in the URL.

Well what does that mean in regards to getting a Create Node on the add content form ? Are you saying we need to create a custom menu link somewhere ? It is just not clear to me.

If I recall the way node_reference URL used to work is that it automatically added the create link on the node where you have the reference field.

Thanks again,

drupalerocant’s picture

Priority: Normal » Minor

Just in case it helps anybody, I couldn't manage to solve this problem with entity prepopulate, but in the meantime I found a very useful module that solves this issue. It is called entity connect.

It simply expands both Entity reference and References (node_reference and user_reference) fields by adding "add new content" and "edit current content" buttons. It works with all default widgets provided by Entity reference and References (node_reference and user_reference). [...]
The "add a new" button will enable you to add / create a new entity. The first form will be cached then the new form will be generated. Once the new form is completed and saved the user will return to the original form.
The "edit" button will take the user to the edit form of the referenced entity. Once the user is done editing, he is sent back to the previous form.

It is in its beta1 version and it works for me in my little experience with it.

verres’s picture

Same problem here -- although I had this module working well earlier on my site --. Not sure what changed, but now none of the fields I used this form will display the 'add new content' button. I have installed some other modules since the time when it was working and upgrades some modules too -- are there any known conflicts with other modules that might be doing this? if not, can somebody suggest a place I could look to see where there might be a problem?

thanks

verres’s picture