Automatically linking nodes.
Hello everyone
I have tried a number of approaches to solve this problem, but none has worked completely so far.
Here is the situation:
I have two types of nodes on the website: Contest(mostly text fields generated by cck) and Entries(image node).
Users can browse through various contests, and if they like, they can submit their entries for the particular contests.
Now, how do i link them together?
The flow that i want is like this :
User visits the "contest" node page-> clicks on some kind of "submit entries" link on the page->uploads his image->the entry is updated on the contest page.
If i can somehow link the images to their contest, i can use views filters to show the particular images for that contest. but how do i link them automatically?
I tried "node images" module ... but it can't be used in my case because i want the images to be nodes in itself too so that others can comment on them and rate them etc etc.
Thanks in advance for your help.

Custom Links & Node reference
You can use http://drupal.org/project/custom_links and http://drupal.org/project/nodereference_url or node reference field to achieve this.
use custom links with the token module to do the following.
If you use custom links, set up a link with say a name "upload image for this contest" and set the link target to "yoursite/node/add/image/[nid]" .
Use the nodereference url module to set the link using the nid from the link.
Thanks a lot!!
It looks exactly like the solution that i wanted!!
Will try it soon and then will update here.
:)
Thanks a ton ytin!
it worked!
thanks ytin!
it worked like a charm...
i just installed both modules and then created a new node type with cck and then selected the node reference by url option...
it even automatically created the "create new image" link :)
Thanks!