I'm building a site that includes two node types, "scrapbook" and "press clipping". A user can create multiple scrapbooks which are either public or private, and they can also add press clippings to a public pool.

Each scrapbook includes an entity reference field that allows multiple press clippings to be referenced from each notebook. This works fine, but the only way I can add a reference from a notebook to a press clipping is by editing the scrapbook. I want to include a dropdown on each press clipping that allows the user to select one of the scrapbooks they have created and add the press clipping to that scrapbook.

What's the best way to achieve this result?


1 Answer 1


Personally, I'd move the entity relationship field to the press clipping content type, so you get the convenient dropdown there, and use the reverse relationship, or contextual filter when building a view

  • Great, thanks! But how do I allow users to add a clipping to a scrapbook from the node view screen, rather than from the node edit screen?
    – Jim
    Jul 6, 2013 at 12:52
  • Also, this doesn't seem to address the fact that I want to set up node references for each user, rather than having one global node reference?
    – Jim
    Jul 6, 2013 at 12:59
  • For the first problem, you can put the add form into a block, and add it to the page using the block system, context, panels, or a block insertion module. here's a brief how-to on that: stackoverflow.com/questions/1450941/… . For the second problem, I've used the entity_reference_view widget and created a simple view with a contextual filter linked to the current user id as a quick fix. drupal.org/project/entityreference_view_widget
    – Dom Day
    Jul 6, 2013 at 20:55

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.