Question

Say I have 2 content types "Artist" and "Biography". I can use Entity Reference to link one Biography with one Artist (it's a one to one relationship).

Now when creating a new Artist, can I have a tab or a link to add an artist biography directly, instead of having to create the artist first, then the biography, and link it with an artist?

Thank you.

Was it helpful?

Solution

I don't know of one for Entity Reference but if you can swap that out in favour of the References module you can use References dialog which would be suited to your use case:

This module extends reference fields like the user and node reference fields by adding links to add, edit and search for references through a dialog. This allows for a workflow where the user can create all the references to a node at the same time as she is creating it, a process which sometimes get's a bit backwards, when a user for instance needs to create all the facts for an article.

If you're changing to a different relationship module, there's also the Inline Entity Form module which:

Provides a widget for inline management (creation, modification, removal) of referenced entities.

It embeds the add/edit form for the referenced entities into the primary entity's form so you can create multiple related entities from the same page. It also has support for nodes built right in.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top