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

bky1701’s picture

I 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.

corey.aufang’s picture

This 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

add1sun’s picture

Status: Active » Fixed
add1sun’s picture

Category: bug » support

wasn't a bug in the module

Sabou’s picture

Hi,

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

corey.aufang’s picture

As 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.

add1sun’s picture

hm, 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.

Status: Fixed » Closed (fixed)

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

dawnsong’s picture

not work for 6.6 either

vacilando’s picture

Component: Code » Documentation
Status: Closed (fixed) » Active

I 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.

justin3’s picture

Thanks!

Antinoo’s picture

vacilando: +1

please add the [body_field] example to the USAGE.TXT file and the handbook. ;-)

jbrauer’s picture

Status: Active » Fixed

Committed to 6.x branches and updated handbook page.

Status: Fixed » Closed (fixed)

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