Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
I have no idea what this request is asking. Please be more thorough in your request. Describe what you current have, what's missing from that implementation, and how the new version should work.
btw - I love the Node Reference URL module and in many use cases it's been great!
However, I need something more like what dhalgren is asking for. Here's a description of my use case:
I have a "talent" node type and role (each node is a profile node - name, bio, photo, etc.)
I have a client role that can create a project gallery of talent (a project node type)
I'd like for the client role to simply be able to search the talent node types and somehow flag them and when they flag them have that add a node reference on the project gallery node to that talent node
So the node reference field would be on the project gallery node and would be set to unlimited probably. I've thought of using prepopulate module somehow as well but wondered if flags could do this sort of thing.
Don't really think this is a nodereference_url patch, however, yes flags could be used with a custom module to do the above.
1) there's a actions that can be triggered by something being flagged
but more likely
2) There's a hook_flag that is called whenever something is flagged. So the module you'd describe would implement the hook and on flag add in the node reference, and unflag remove it. It'd have to now somehow what the parent node would be.. etc., so could get a complicated. I'd just suggest making a custom module i :/ . (I was thinking about a system that'd involve something similar also, coincidentally. I'd go for the custom root; the extra data that flagging/unflagging is likely not needed and it'd give me more control, though the ui and options of flags is nice. Also want one for adding taxonomy to terms).
I'm wondering if you ever got this to work. I'm building a site which could really use the same functionality. I know there was a recommendation to build a custom module. That's a bit more advanced than where I've gotten to so far in drupal. If you found a solution, I'd really appreciate any insight.
I'm going to have a go at building a custom module. Wish me luck.
I'm also trying to do something in this direction. My use case would be:
I'm using the content profile module, so users have a content type as profile. This profile has several cck fields and among them there is one called "My preferred cars".
"My preferred cars" is a node reference field using a select list that is referenced to the content type "Cars" and can have unlimited values.
- So one way to add cars to your profile is to visit your profile configuration page and add themn via the select list.
- The other way I want it to be, is when a user is visiting a "cars"-content type page. On this page there should be a link, that says something like "Add this cars to my preferred cars" which should then add this record to the existing ones. So the user can do this directly on the node page and not have to manually remember that record and go back and select it on the profile page.
Comments
Comment #1
quicksketchI have no idea what this request is asking. Please be more thorough in your request. Describe what you current have, what's missing from that implementation, and how the new version should work.
Comment #2
dhalgren commentedon flag, auto-populates a node reference field with a value from the FLAG
Comment #3
quicksketchFlag was not meant to do this, however you might look at Node Reference URL Widget, which I think does exactly what you're wanting.
Comment #4
jponch commentedbtw - I love the Node Reference URL module and in many use cases it's been great!
However, I need something more like what dhalgren is asking for. Here's a description of my use case:
So the node reference field would be on the project gallery node and would be set to unlimited probably. I've thought of using prepopulate module somehow as well but wondered if flags could do this sort of thing.
Comment #5
hefox commentedDon't really think this is a nodereference_url patch, however, yes flags could be used with a custom module to do the above.
1) there's a actions that can be triggered by something being flagged
but more likely
2) There's a hook_flag that is called whenever something is flagged. So the module you'd describe would implement the hook and on flag add in the node reference, and unflag remove it. It'd have to now somehow what the parent node would be.. etc., so could get a complicated. I'd just suggest making a custom module i :/ . (I was thinking about a system that'd involve something similar also, coincidentally. I'd go for the custom root; the extra data that flagging/unflagging is likely not needed and it'd give me more control, though the ui and options of flags is nice. Also want one for adding taxonomy to terms).
Comment #6
dhalgren commentedComment #7
quicksketchClosing after lack of activity.
Comment #8
jaron commentedHi,
I'm wondering if you ever got this to work. I'm building a site which could really use the same functionality. I know there was a recommendation to build a custom module. That's a bit more advanced than where I've gotten to so far in drupal. If you found a solution, I'd really appreciate any insight.
I'm going to have a go at building a custom module. Wish me luck.
Thanks for any help.
Comment #9
drupov commentedHi,
I'm also trying to do something in this direction. My use case would be:
I'm using the content profile module, so users have a content type as profile. This profile has several cck fields and among them there is one called "My preferred cars".
"My preferred cars" is a node reference field using a select list that is referenced to the content type "Cars" and can have unlimited values.
- So one way to add cars to your profile is to visit your profile configuration page and add themn via the select list.
- The other way I want it to be, is when a user is visiting a "cars"-content type page. On this page there should be a link, that says something like "Add this cars to my preferred cars" which should then add this record to the existing ones. So the user can do this directly on the node page and not have to manually remember that record and go back and select it on the profile page.
How can this be achieved?
Thanks