{"id":287,"date":"2008-08-01T13:32:43","date_gmt":"2008-08-01T13:32:43","guid":{"rendered":"http:\/\/blog.cyberwizzard.nl\/?p=287"},"modified":"2016-03-17T21:24:20","modified_gmt":"2016-03-17T20:24:20","slug":"moveabletype-plugin-joomla-enhanced","status":"publish","type":"post","link":"https:\/\/blog.cyberwizzard.nl\/?p=287","title":{"rendered":"MoveableType Plugin Joomla! enhanced"},"content":{"rendered":"<p>Joomla can be used in a blog like manner using the XML-RPC interface. Unfortunately, Joomla only provides a Blogger API plugin which is rather limited.<\/p>\n<p>Luckely, some Japanese people created a plugin which improved the supported XMLRPC API&#8217;s. It&#8217;s called MoveableType XML-RPC Plugin and can be found on the Joomla site.<\/p>\n<p>Technically this is not only a MoveableType implementation as it supports all functions needed for MetaWeblog and Blogger as well as Google Docs (since version 2.1.0).<\/p>\n<p>The only thing driving me nuts is the fact that some blog tools refuse to work because the plugin refuses to return a list of supported functions (most programs just assume everthing is supported, which is wrong as almost everything is optional).<\/p>\n<p>Fortunately this is solved quickly by adding a few lines of PHP to the plugins\/xmlrpc\/movabletype.php file. Find the following section (around line 790):<\/p>\n<pre>function mt_supportedMethods()    {       return (new xmlrpcresp(new xmlrpcval(array(), \"array\")));    }<\/pre>\n<p>Replace this with the following:<\/p>\n<\/p>\n<pre>function mt_supportedMethods()    {       global $xmlrpcString, $xmlrpcArray;       $functions = array();       foreach(array_keys(plgXMLRPCMovableType::onGetWebServices()) as $function_name)          $functions[] = new xmlrpcval($function_name, $xmlrpcString);       $struct = new xmlrpcval($functions, $xmlrpcArray);       return new xmlrpcresp($struct);    }<\/pre>\n<\/p>\n<p>And voila, there you have it, a fully working function listing enabling your favorite blog program to do its job properly&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Joomla can be used in a blog like manner using the XML-RPC interface. Unfortunately, Joomla only provides a Blogger API plugin which is rather limited. Luckely, some Japanese people created a plugin which improved the supported XMLRPC API&#8217;s. It&#8217;s called MoveableType XML-RPC Plugin and can be found on the Joomla site. Technically this is not [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[250,251,248,249,244,460,459,252,245,247,35,246],"class_list":["post-287","post","type-post","status-publish","format-standard","hentry","category-general-blog-entries","tag-ely","tag-japanese","tag-limited","tag-luckely","tag-moveabletype","tag-no_ok","tag-not_ok","tag-people","tag-plugin","tag-rather","tag-some","tag-which"],"views":2409,"_links":{"self":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/287","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=287"}],"version-history":[{"count":1,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/287\/revisions"}],"predecessor-version":[{"id":446,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=\/wp\/v2\/posts\/287\/revisions\/446"}],"wp:attachment":[{"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cyberwizzard.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}