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
Comment #1
dzepol commentedI'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]
Comment #2
phayes commentedHi 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)
Comment #3
dzepol commentedThanks 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?
Comment #4
phayes commentedCheck it out:
http://drupal.org/node/590452
Please let me know if it makes sense or I am missing anything.
Comment #5
bealdav commentedNice job.
But in the example
www.example.com/node/add/page&title=What a Great Page&body=What a Great Bodyyou '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
Comment #6
dzepol commentedThank 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.
Comment #7
phayes commentedComment #9
redhatmatt commentedwhere 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!!!!!!
Comment #10
phayes commentedOnce you are on those pages hunt around for "Auto-fill from URL" or somesuch
Comment #11
phayes commentedI think this is resolved....