Using the Ubiquity Firefox extension to create Drupal nodes
The Ubiquity extension for Firefox is an awesome tool that allows you to download user created mashups to do some really cool things in your browser. The video below shows the power of what it can do.
<!--break-->
It was introduced in August this year and there are already quite a few user created commands, including this one by Nils Werner, which will pre-populate a blog entry with the selected text on a web page. The only problem is that is requires your blogging engine to accept text via the GET parameters, which Drupal doesn’t do by default. No problem, just install the Prepoluate module and away you go.
Here are some step by step instructions on how to set it up.
- Install the Ubiquity Firefox extension.
- Enable the Prepopulate module on your website.
- Install this Ubiquity command (it will display an information bar at the top of the page if you have Ubiquity enabled).
- Now that you have the command, you need to tell it where your blog form is. To do this, press CTRL + Space (this is the default hotkey to launch Ubiquity) and type “blog set” and press enter. A popup window should appear, and you will need to enterhttp://www.yourdomain.com/node/add/blog?edit[body_filter][body]=$body&edit[title]=$subject
(this assumes that you want to populate the ‘blog’ content type) - Once that is set, simply select the text on any web page and press CTRL + Space and type ‘blog this’ and you will be taken to your Drupal site with that text already entered into the form
It’s pretty simple and makes it much quicker to jot down ideas for your blog while surfing the net.
Also, because Ubiquity commands are written in Javascript there should be a way of doing this without using the Prepopulate module and interacting with the form elements directly, but I’m not familiar enough with Ubiquity yet to work this out. If you have any ideas, let me know in the comments.
-->