2

In a screencast based on Drupal 6, I spotted (~3:45) that several fields had an additional "create and reference" icon that would pop a secondary dialog, for in-place creation of non-existent nodes, which would then be added as reference. This appears to be missing from Drupal 7 Reference module, which is now responsible for fields of that type, and I can't seem to find any evidence it's going to be put back.

My homework:
I dug up an old groups.drupal thread where eventually someone posted a round-up of many options last year, but most of those now range from inactive to abandoned. A few have issue threads full of people asking about a Drupal 7 upgrade, with absolute silence from the maintainers. From that list, two actually show Drupal 7 work:

  1. Node Reference Create: Seems to only do the barest minimum: create a node with a title of what you input in the textarea. To provide values for any other fields, you need to make your way over to that node's individual edit screen. This isn't enough for my needs.
  2. Corresponding node references: I'm actually just not sure why this is even on the list. I've installed it, poked around, and can't actually find this feature implemented. Am I just missing it?

I'm also aware of Relation, which seems intended to supersede just about every other reference-ish module and I presume will do this. But it doesn't even have any released code at the moment, and this research is for something I'm working on right now, timeline of probably a couple months tops.

Are there any currently viable options for accomplishing this? I'm willing to guinea pig anything at least in beta status. Or do I need to give serious consideration to doing this in Drupal 6 instead?

1

If you are using the overlay module in Drupal 7. Create the main node but use the Node Reference URL widget on the referencing nodes. This will put links on every node view page that behave similar to the Relationships module. If you add Field Collections module to group all the fields, you can get edit in place with overlay popups on the node.

The workflow would be like this. 1. Create a node. 2. The node form only asks for the title of the node. 3. Return to the node with several different parts, each getting their own popup form or if JavaScript is enabled a return destination back to the node after creating or editing.

  • This actually looks promising; thanks. Will have to do a bit of experimenting. – Su' May 1 '11 at 20:07
  • If you log into this site, you can see the menu on the side of the information in the node to add a review, image or video. (You might need Google Chrome to translate for you.) This is done through the NR URL widget. Notice how the reviews are nodes added like comments through a View? Where have I seen comments with comments?Thinking like that can lead to some cool stuff in Drupal. – Adam S May 1 '11 at 21:14
0

While waiting for a solution to mature, I've just been adding field help descriptions to nodereferences such as 'Choose a foo or add a new foo.'

0

There is currently no full D7 release yet, but I have alaways used http://drupal.org/project/noderelationships to complete this function in D6. Something to keep an eye on.

Some details from the module's project page:

The Node Relationships module provides methods to complete two way relationships between content types enhancing the features of node reference fields.

Almost all the settings to administer the features of this module can be located at Administer -> Content management -> Content types -> [type] -> Relationships.

  • Right, that's in the round-up list, and particularly is one of the modules with no visible d7 branch at all, and the maintainer hasn't seen fit to at least state one way or the other whether or not it's going to happen. And it's not as if he's completely absent, either, so it can only be assumed that his silence on the matter is intentional. – Su' Apr 7 '11 at 1:14
  • I have done a significant amount of research on modules that provide similar functionality for a recent project. There may be another out there, but this one served me well in D6. The module maintainer may be donating his time to maintain the module and therefore hasn't done anything with it yet. But in the spirit of open source, you could take on some of the initial ports of the module? – user842 Apr 7 '11 at 1:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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