Hi all:

I am working with a client who had another Drupal shop develop their website but I've taken it over because of my business experience in their industry. They are a primarily a print publisher that sells advertising, and they have a content-type called "article" where they post most of their web content.

They have been entering their article content in essentially raw text; for example to create a heading they just enter as upper case characters instead of using <h2> or <h3> tags. In discussions with them I've learned that the publisher/editor would rather not have his editorial staff have to learn HTML. One option is to move to FCKEditor or similar, but I've had so little luck with that myself that I'd hate to hoist it onto a markup-phobic client.

Which brings me to consider recommending they use Windows Live Writer. WLW is an absolutely brilliant free blog editor from Micro$oft that balances just the right amount of simplicity with just the right about of features and it can post blogs to Drupal. Unfortunately, however, it can only post to the 'blog' content-type and no other.

So what I want to do is write a module or whatever else I need to write to get it to post to the "article" content type instead. That seems like it should be fairly easy but I've looked at the code and it is anything but obvious. I'm pretty such I'd need to use hook_xmlrpc() but at this point I have no clue what the PHP module would look like.

Can anyone help me with this? I have written fairly complex modules before but I don't know how to debug a request that doesn't come from the browser. Seems like a module to support posting any content type using Windows Live Writer would be a stellar module to add to Drupal, and I'd be happy to contribute my work to the community if only someone who knows what needs to be done can help me with some sample code and point me in the right direction.

I'm sure given enough time I could figure it out but the client wants results sooner than later so I don't have the luxury of spelunking down in the code for a week trying to figure it out.

Thanks in advance for any help.

Comments

mikeschinkel’s picture

Anyone?

Shane Birley’s picture

I have a couple of clients who want to use the Windows Live Writer but Live Writer doesn't appear to allow users to select the content type they wish to post to. Normally, one can force this for some blog clients by entering in "user name:content type" into the configuration - but this doesn't appear to work with Live Writer. Care to test a few things?

---
Shane Birley
Left Right Minds
http://www.leftrightminds.com

---
Shane Birley
Left Right Minds
https://www.leftrightminds.com

amygdala’s picture

i've gotten it working with a non-blog content type. here's how, assuming you've already created the 'article' content type:

1. enable the blog module and the blog api module
2. enable the 'edit own blog' permission for the user role that is being used to post (Administer › User management › Access Control)
3. enable the 'article' content type for the blog api (Administer › Site Configuration › Blog APIs)
4. fire up live writer, and go through the add account process. wlw will not be able to detect the blog settings, so use the xmlrpc.php path to configure it
5. wlw will find multiple blogs - usually they will look like "user: story", "user: blog". you should see an entry called "user: article" - select that
6. finish the wlw account configuration page.

run a test post - you should be done!

softtouch’s picture

I can not.
WLW detect automatically drupal and do not allow me to select anything else...

spyjournal’s picture

I followed these instructions, and then added these additional details:
do points 1 2 and 3 above. In 3 - enable other required content types - eg image, poll, story, page etc.
In live writer you will need to create a weblog account for each content type

so use these settings to do that.
Create new weblog account
enter your site url/xmlrpc.php and your user name and password
select wordpress and make sure the url path is http://www.yoursite.com/xmlrpc.php
select the content type for this weblog account
allow live writer to configure itself

repeat for each content type

example of page created using this method at http://www.spyjournal.biz/node/369 - containing the instructions also

udig’s picture

jethrocon, amygdala - thanks for your posts!
Based on these posts I created the desired link from WLW to D5. it's awesome!

However I wish I could overcome the last obstacle to make it 'customer ready' functionality. While I can edit blog entries on a real WYSIWYG mode, all the other content types seem to fail to allow that.
When trying to ‘Update Weblog Style’ of any content type except of the blog - I get a message saying that the style template used by this weblog could not be downloaded.
I can still create/edit all other content types but when updating the site their appearance is different (obviously).

Do you have any idea how to fix that? (tried different users, sites, content types and protocols)

Thanks!

coupet’s picture

Can we confirm other clients that work with article content type?

----
Darly