Drupal Module of the Week: Prepoulate

Prepopulate is a handy module for auto filling fields on a node creation page with values from the url. This way you can provide 'content creation' links on your Drupal site, prepopulated with things like taxonomy terms, profile data, etc...

In our case we have a client that wanted a user to be able to submit a preformatted letter to a third party outside of the site with selected profile information attached. Within the users profile we've provided a link to the create node and have passed a bunch of the users data along in the url. All the user then has to do is make edits where needed and hit send. A pretty painless way of getting Drupal to do what we want. Don't forget you're limited to the maximum size of the URL so it's great for text fields and options, not so much for passing around blog posts and definately not for files.

It works on the title and body fields of nodes as well as any text/numeric fields in CCK. There is some talk of incorporating POST support so if you're handy with that sort of thing head to the issue queue and help them out.

codi / Project Manager
Born and raised in East Vancouver, Codi’s jaded sense of irony developed earlier than most. His penchant for black coffee and obscure music allowed him to seamlessly blend into the unwashed basement dwelling art-commune that...

Post a new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>, <c>, <cpp>, <css>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. The supported tag styles are: <foo>, [foo].
  • Insert Google Map macro.
  • Each email address will be obfuscated in a human readable fashion or (if JavaScript is enabled) replaced with a spamproof clickable link.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.