[body_filter][body] not working for Drupal 6.3

justin3 - August 14, 2008 - 06:00
Project:Prepopulate
Version:6.x-2.x-dev
Component:Documentation
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

bky1701 - September 20, 2008 - 10:01

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.

#2

corey.aufang - October 20, 2008 - 21:42

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

#3

add1sun - November 17, 2008 - 17:49
Status:active» fixed

#4

add1sun - November 17, 2008 - 17:49
Category:bug report» support request

wasn't a bug in the module

#5

Sabou - November 19, 2008 - 13:53

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

#6

corey.aufang - November 21, 2008 - 01:13

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.

#7

add1sun - November 21, 2008 - 01:18

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.

#8

System Message - December 5, 2008 - 01:21
Status:fixed» closed

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

#9

dawnsong - December 10, 2008 - 16:41

not work for 6.6 either

#10

vacilando - January 18, 2009 - 13:53
Component:Code» Documentation
Status:closed» 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.

#11

justin3 - January 23, 2009 - 05:15

Thanks!

#12

Antinoo - March 7, 2009 - 04:29

vacilando: +1

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

#13

jbrauer - October 8, 2009 - 02:29
Status:active» fixed

Committed to 6.x branches and updated handbook page.

#14

System Message - October 22, 2009 - 02:30
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.