The title is showing up, but the textarea of the body remains blank. I'm entering it exactly as the readme file demonstrates. I'm using the prepopulate module for submitting new forum topics from other websites.

Also, is there a way to modify this to place the referring URL and page title into the form? Thanks.

Comments

Christoph C. Cemper’s picture

+1 same problem here... body remains empty with this submission url

/node/add/blog?edit[title]=prepopulate%20%7C%20drupal.org&edit[body]=%3Cp%3E[via%20%3Ca%20href etc.etc.etc.

Christoph C. Cemper’s picture

problem seems to be adressing the edit[body] ... changing this to edit[teaser] works fine here to fill stuff into the teaser field (where it does not belong)

eafarris’s picture

Though the name would seem to be edit[body], it's actually edit[body_filter][body]. A URL like this works for me:

http://drupal.example.com/node/add/content-blog-entry?edit[title]=title&edit[body_filter][body]=body
Christoph C. Cemper’s picture

hmmm who would have guessed THAT :-)
should go into readme IMHO

greggles’s picture

Title: Not working for body variable in URL » Update README.txt body variable in URL
Component: Code » Documentation
Status: Active » Needs review

Changing title to be more descriptive.

In my quick test the example edit[body] didn't work but indeed the edit[body_filter][body] did work. eafarris - can you update the readme.txt with this as well?

eafarris’s picture

The DRUPAL-5 branch now includes a USAGE.txt file:

http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/prepopulate...

As soon as I figure out how to add it to the tagged releases, this should be fixed.

eafarris’s picture

Version: 5.x-1.1 » 5.x-1.2
Assigned: Unassigned » eafarris
Status: Needs review » Fixed

Release 5.x-1.2 includes a USAGE.txt file with lots of examples.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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