Hey,

I'm wondering if the following is possible with this module:

I have a content type (Progress) that references another content type (Goal). I'm using this module to place "add progress" widget on goal nodes to add progress entries toward that goal. I've created a view so that users can only reference goal nodes that they own. However, users still see the option to add progress nodes to other users's goals. Is it possible to make the "add progress" widget only show up on goals nodes that are created by the logged-in user? I've looked in the permissions, documentation, and settings and haven't seen any way to do this..

Comments

rogical’s picture

completely the same request with you!

Such as Company node with Job node, users are restricted to add jobs to their own company.

greenrmor’s picture

thanks that im not the only drupal user needs it! :)

vasike’s picture

i'm not sure this is the issue but i think it will be useful to have an option in the Node reference field settings to suppres the "Add another item" button for Node Reference URL Widget

kufeiko’s picture

+1 for this request.

DickSwart’s picture

+1 for this request.

jdufaur’s picture

+1 for this request for a similar case:

I have a content type (room) that references another content type (property). I'm using this module to place "add room" widget on the view property referenced.

However, users with aother or the same role but with the same permissions by content type still add room nodes to other users's goals.

Is it possible to disable the widget for all users that are not the node author.

Thank's in advance and congratulation for this module.

quicksketch’s picture

Category: feature » support

If you can do this with Views you can do it with Node Reference URL Widget. You just have to use Node Reference module's ability to specify a list of nodes through a view. Node Reference URL Widget will then obey those rules when displaying the link.

If you're unable to construct this view or you can't get the proper contextual filters set up, this is a question for the Node Reference module, not this module (which is just a widget on top of that module).

quicksketch’s picture

Just a note that the D7 version of Node Reference URL Widget did not work with Views until the patch in #1213788: Support for displaying Add reference link based on a view in Drupal 7 was committed (just an hour ago). I'll be making a new 1.12 release with this functionality.

jdufaur’s picture

Thanks, i will try that immediatly.

kufeiko’s picture

What quicksketch said in #7 is absolutely correct. Tell nodereference to use only nodes provided by a view, define the view with the nodes that you want and problem is solved!

quicksketch’s picture

Status: Active » Fixed

Thanks vanko.

Status: Fixed » Closed (fixed)

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