Is it possible to fill a cck field via a url argument? For example, I am on node 144. I want to create a new node that has a node reference field pointing to node 144. Right now I would go to the create new content page and have to select from a dropdown or autocomplete field, node 144. Is there a way to create a url like, /node/add/newnodetype/fieldname/fieldvalue and have the fieldname field be filled in with the value fieldvalue?

Thanks!

Comments

will_in_wi’s picture

bump

kriskd’s picture

I would be interested in knowing if this can be done as well.

In my case, I have two content types Customers and Activities. Activities has a node reference to Customers. Ideally I want to create a table view of my Customers with a link to Add and Activity. That link would go to the node creation form for an Activity with the Customer already selected based on that link.

Even if there is not an easy out-of-the box solution, can someone tell me how I would proceed with this? I'm not a module writer, but there is a first time for anything I guess.

vivianspencer’s picture

Have a look here: http://drupal.org/node/233378

- Vivian

kenorb’s picture