Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.2.4

Request #10878 Add support for draft posts
Submitted: 2007-04-28 20:13 UTC
From: cweiske Assigned:
Status: Open Package: Services_Blogging (version 0.1.1)
PHP Version: 5.2.1 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2007-04-28 20:13 UTC] cweiske (Christian Weiske)
Description: ------------ Was just wondering though, whether you'd think it useful to include draft as a parameter in the savePost method in the Blogger.php driver class. Maybe it'd mess other things up - but in the little project I'm working on, I am using your code to make drafts in WordPress - so thought that little change might be useful for others -- i myself, just switched the draft parameter to false permanently.

Comments

 [2007-04-28 20:13 UTC] cweiske (Christian Weiske)
Since not all blogging systems support drafts, I would add a 'draft' property to the post class. setting it to true would make it a draft. How do drafts work on wordpress? which xml-rpc things need to be changed?
 [2007-04-28 20:13 UTC] cweiske (Christian Weiske)
Wordpress supports the Blogger, metaWeblog and MoveableType APIs [1]. In the metaWebLog API, the newPost method has a boolean value for 'publish' as a parameter; setting it to false will result in it becoming a draft. Not too sure about the Blogger and MoveableType API's though
 [2008-03-22 12:51 UTC] amir (Amir Mohammad Saied)
As MovableType extends the MetaWeblog, it has to be the same but for Blogger, the <entry> must contains <app:draft> extension element.