Posting to Drupal
This lesson will show you how to post to Drupal using ScreenSteps. This lesson uses Drupal version 6.2.
Navigate to Drupal Administration Area
Enable Blog API
Navigate to Site Configuration->Blog API.
Enable Blog Entry
Make sure the Blog Entry checkbox is checked (1) and click Save Configuration (2).
Your settings will be saved.
Update blogapi_metaweblog_get_category_list
In Drupal version 6.2 there appears to be some missing code in the blogapi_metaweblog_get_category_list function. This function is called when ScreenSteps attempts to retrieve available categories for a blog. Drupal reports a server error when it shouldn't. The fix is easy and here is how to do it:
1) Open blogapi.module which is located in the ./modules/blogapi/ folder of your Drupal installation.
2) Locate the blogapi_metaweblog_get_categorylist function. In my installation it starts on line 392.
2) Add the following code in the spot specified in the image:
// BEGIN FIX: Without validating the user, the _blogapi_validate_blogid will
// return an empty array
$user = blogapi_validate_user($username, $password);
if (!$user->uid) {
return blogapi_error($user);
}
// END FIX
Configure ScreenSteps
In order to post to Drupal you should configure a Web Account (instructions here) using the Movable Type API (1). In the root folder of your Drupal installation is a file named xmlrpc.php. The full url to the file should be entered in the Server field (2).
Enter your user name and password and click Test Connection (3) to verify that everything is configured correctly.
You can now post your lesson to Drupal following these instructions.
Watch Out For Input Formatters
After posting my first lesson to drupal I opened the blog post in the browser but no images appeared. This is because the Filtered HTML input formatter was the default for all content. To fix this click on the Edit link.
Change Input Format to Full HTML
Click on Input format (1) to expand the available options. Click on the Full HTML (2) radio button and click Save (3).
Success!
Your lesson now displays correctly in Drupal.

Comments (0)
Add your comment