The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Jun 08, 2011 6:37 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 30, 2008 12:44 am
Posts: 6
I've been all over the place trying to find out how to call the XML-RPC plugin from a client. Specifically, I'm crafting a PHP CLI script that will call the blogger.php plugin in order to submit an article. I know that in the final release of Joomla 1.6, core support for XML-RPC was pulled. However, a plugin was provided. I can't seem to find any documentation on how to use it, though.

Background: I'm converting an all static-content site with about 9,000 articles into a Joomla! site. I tried a standard MYSQL import of the content after I scraped it, but ran into the ACL foreign key changes that I later read about :o The articles imported just fine. It's just I couldn't view the article unless I went into the article manager, opened it up, and then saved it. I'm guessing it did some re-mapping of jos_content with the ACL table in jos_assets on the save. That was a very important step that I left out, obviously. Anyway, I'm looking for a seamless way to import my scraped content and staying within the boundaries of the Joomla DB standard. The idea for using XML-RPC is to write a script that will upload each article individually. Doing that will enter the article and create a the proper jos_assets entry. I surmised that by viewing the plugins/xmlrpc/blogger.php file (newPost function). It might take a while to do it that way, but I actually don't mind. I want to do some spot-check QC of the articles being imported to make sure they are displaying as expected.
Anyway, sorry for the ramble. Any help would be appreciated.
Thanks,
KP


Top
 Profile  
 
PostPosted: Wed Jun 08, 2011 6:55 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 30, 2008 12:44 am
Posts: 6
OK.. I took another look at a document that I had read before. I guess I'm going about this the wrong way. I still want to know what the plugin is for, but for now I can roll out a quick component from one of my shells and accomplish what I want (at least I think I can). For anyone who is in the same boat as me, refer to this page and download the example code at the end of the page:

http://docs.joomla.org/Xml-rpc

Thanks,
KP


Top
 Profile  
 
PostPosted: Wed Jun 08, 2011 8:47 pm 
Joomla! Master
Joomla! Master
Online

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 14051
Location: Akershus, Norway
I imported into the jos_content with a sql query. The only issue I had, was that I had to specify an author for the article.


Top
 Profile  
 
PostPosted: Thu Jun 09, 2011 3:26 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 30, 2008 12:44 am
Posts: 6
Quote:
I imported into the jos_content with a sql query. The only issue I had, was that I had to specify an author for the article.

Thanks! I don't think that was a field I had populated initially. I will put my id into that field and give it another try. That would probably explain the issues I saw related to jos_assets and ACL.

-KP


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 



Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group