Could you provide feature to enable "create node" link on referenceable nodes' edit screen instead of the node view links area?

In area of field setup, where you give options to show create link in teaser and/or full view, provide a checkbox to show the link on the node's edit screen.

This could get around the condition where users can reference nodes they are not authourized to edit.

Comments

quicksketch’s picture

This feature is out of scope for this module. The task of creating other nodes while already on the node edit form has been attempted multiple times, I'm not sure if any good solutions yet exist:

Examples:
http://drupal.org/project/popups_reference
http://drupal.org/project/inline_noderef
http://drupal.org/project/inline_references

goldoak jp’s picture

Well, what I need is to be able to restrict users from creating nodes (via nodereference_url create link) that reference nodes they do not have permission to edit.

Node type A is referenceable and is editable only by its author. Node type B is the referencing nodes created via nodereference_url widget's create link. I want the authors of A nodes to be able to create new B nodes that reference their own nodes, but not be able to create B nodes that reference A nodes created by other authors.

In other words, the create link for node type B would not show in the type A links area unless the user is able to edit that specific node.

Any ideas of how to accomplish this?

Thanks

goldoak jp’s picture

I think I found a work-around.

I set up a view listing A nodes that is filtered by current user. Then I used the view to populate the select list of referenceable nodes on the node add/edit screen for node type B.

Then I just removed the create link from the links area of A nodes.

And added a link, in the submission instructions of node type A, to the node/add page to create new B nodes.

This way users must have node A edit permissions to see the link to create B nodes. Plus the list of referenceable nodes on the B node are filtered by the current user's list of authored A nodes. They can't select other users' nodes.

Thanks for your help and for your great module. I have used it a number of times to create simple image galleries.

quicksketch’s picture

Category: feature » support
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.