jens-schaller.de

Fixing Categories for Windows Live Writer in Drupal 6.x

When using Windows Live Writer for blogging with Drupal you have to consider a few things, when setting up your account as explained here for example.

But even then, you cannot download any categories from Drupal for use in Windows Live Writer. There is a small bug in the blogapi.module (located under /modules/blogapi/ in your Drupal installation).

Inside this file there is a function at the end of it named _blogapi_get_node_types().

function _blogapi_get_node_types() {
$available_types = array_keys(array_filter(variable_get('blogapi_node_types', array('blog' => 1))));
$types = array();
foreach (node_get_types() as $type => $name) {
if (node_access('create', $type) && in_array($type, $available_types)) {
$types[] = $type;
}
}

You simply have to delete the red marked parts and everything will work as expected.

posted in:

Comments

Wann kommt...

...ein SFF-Update? :-)

Jens Schaller's picture

Der Uwe :D ...ich bin kräftig

Der Uwe :D
...ich bin kräftig dabei, aber habe noch einiges zu tun. Im September auf jeden Fall!

Cool!

Ich freu mich!

Thanks for the fix.

It worked nicely.

Thanks

Only thing for tags that worked with 6.2!

Jens Schaller's picture

Thank you!

I'm glad this was of use for you.