prepopulate [body_filter][body] not working for default node type in D6
title and url work great, but &edit[body_filter][body] (or just [body]) do not work. Can't get anything to come up in the body field at all.
Anyone else have this problem? Any clues would be greatly appreciated.
Comments
Comment #1
bky1701 commentedI am having this same issue on 6.4 with a module of my own design. It would be very helpful to know how to fix this, if it has been determined.
Comment #2
corey.aufang commentedThis isn't a problem with prepopulate, to set the body use edit[body_field][body].
I don't know when this was changed, but this works as of drupal 6.5
Comment #3
add1sun commentedComment #4
add1sun commentedwasn't a bug in the module
Comment #5
Sabou commentedHi,
I'm trying to prepopulate to define the message in contact module form with this :
?edit[message]=Hello
But it doesn't seem to work...Any ideas??
Thanks
Comment #6
corey.aufang commentedAs far as I'm aware, Prepopulate for all forms isn't in the drupal 6 version yet, and therefore Prepopulate only works for node type forms in drupal 6.
Comment #7
add1sun commentedhm, well actually all forms is in D6 now. but that is not to say that it works on *all* forms. we know that there are issues with the comment forms for example. either way this should be a new issue and not hijack a different, fixed issue.
Comment #9
dawnsong commentednot work for 6.6 either
Comment #10
vacilando commentedI am reopening this after spending an hour hunting for body prepopulating solution.
The answer is there, as usual, but it is very much hidden.
The documentation page at http://drupal.org/node/228167 still mentions edit[body_filter][body] but the comment underneath (http://drupal.org/node/228167#comment-1184706) helpfully says we should use edit[body_field][body] instead.
I confirm that the latter works in 6.x-2.x-dev and also in 6.x-1.1.
I am not fixing the documentation myself as I am not sure whether edit[body_field][body] works only since a particular Drupal version, or whether it works in all D5 and D6 versions. Could somebody who knows the answer comment here. Thanks.
Comment #11
justin3 commentedThanks!
Comment #12
Antinoo commentedvacilando: +1
please add the [body_field] example to the USAGE.TXT file and the handbook. ;-)
Comment #13
jbrauer commentedCommitted to 6.x branches and updated handbook page.