Should i try
http://127.0.0.1/dp1/node/add/story/title=my_title&body=example
OR
http://127.0.0.1/dp1/node/add/story/title/my_title/body/example
OR other

and you may explain than configuration is in each type content (not in configuration menu).

I'm very exciting by your module

thanks a lot

Comments

dzepol’s picture

I'm interested in this as well, but I am so confused!

I'm trying to use this for the purpose of a node reference field. So far I have been unsuccessful in my attempts.

I've tried the prepopulate module with limited success. I was able to prepopulate the field if I knew what the NID was but I was unable to find the right variable to use for getting the NID from the URL.

I've attempted to use this module but still no success. I copied and pasted the URL information provided on the field overview page after I enabled it. Nothing changed. I also tried changing "value" to [nid] and still no success. Still having trouble getting NID from URL.

Thanks!

My attempt: http://example.com/node/add/note&field_note_project_ref=[nid]

phayes’s picture

Hi All, I'll try to get some documentation up on monday and better respond to your requests on monday - i'm uber busy right now! :-)

Off the bat:

@orouk:
http://127.0.0.1/dp1/node/add/story/title=my_title&body=example

@dzepol

http://example.com/node/add/note&field_note_project_ref[]=nid
(if it's a multi-value field)
http://example.com/node/add/note&field_note_project_ref=nid
(if it's a single value)

dzepol’s picture

Thanks for your quick response. I've copied and pasted what you gave me and it still doesn't work for me. I'm not in a rush so I can definitely wait until you have time. I don't understanding how it grabs the nid from the url. Again, I am able to get it to work if i already know the nid but the value variable "nid" isn't working.

I'm trying to use this as a link in the page but no success. I've turned off path/pathauto so it just shows node/12 but it doesn't grab the nid. Am I doing something wrong or missing something obvious?

phayes’s picture

Status: Needs work » Needs review

Check it out:
http://drupal.org/node/590452

Please let me know if it makes sense or I am missing anything.

bealdav’s picture

Nice job.

But in the example
www.example.com/node/add/page&title=What a Great Page&body=What a Great Body
you 'll have in the title field : What%20a%20Great%20Page

To prevent this you must modify module like explain here apply urldecode php fonction to url variables

And all is perfect.

You might add an example in your documentation : with this bookmarklet (firefox) you can import : url, title and mouse selection from any internet site

javascript:x=document;a=encodeURIComponent(x.location.href);t=encodeURIComponent(x.title);d=encodeURIComponent(window.getSelection());location.href='http://myserver/node/add/my-url-content?field-my-url-from-the-web='+a+'&title='+escape(t)+'&body='+escape(d);

Thanks for your very useful module
The last but not the least ... , the best

dzepol’s picture

Thank you very much! That was so helpful, I got it working perfectly! All the documentation looks good and was very helpful to me. Thx again for everything.

phayes’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

redhatmatt’s picture

Status: Closed (fixed) » Needs work

where do you actually put your setup of a field, what field in the content types field set up?

http://drupal.org/node/590452 never really says where to put

"Here you may set-up the variable from the URL you wish to get data from, and configure other options. For cck fields, the variable defaults to field_yourfieldname, for node title and body fields, it defaults to title and body respectively."

FINE, But where!!!!!!

phayes’s picture

For each field you want to be able to auto-fill, you must configure in the node or field configuration pages.

- Node configuration can be found at Administer->Content Types->edit
- CCK Field configuration can be found at Administer->Content Types->Manage Fields->Configure

Once you are on those pages hunt around for "Auto-fill from URL" or somesuch

phayes’s picture

Status: Needs work » Fixed

I think this is resolved....

Status: Fixed » Closed (fixed)

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