The Joomla! Forum ™



Forum rules


Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Jan 27, 2012 5:11 pm 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Jan 27, 2012 5:04 pm
Posts: 1
How can I add an article using joomla API?
Without direct reference to the database..


Top
 Profile  
 
PostPosted: Thu Jun 14, 2012 6:03 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Fri May 04, 2012 3:26 pm
Posts: 45
I notice this question never got any love. Any tips on doing this would be appreciated. As a distribution scheme, we are writing cli scripts. It would be nice to be able to use the api vs. straight up sql inserts.

Is it possible through the api, or would we have to manipulate the abstracted com_content classes?


Top
 Profile  
 
PostPosted: Sat Jun 16, 2012 3:04 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Thu Aug 11, 2011 5:00 am
Posts: 238
Personally I think someone should write a helper class that allows others to add users, articles, categories and other basic joomla concepts to their projects. I would if I could :)


Top
 Profile  
 
PostPosted: Sun Jun 17, 2012 8:21 am 
Joomla! Ace
Joomla! Ace

Joined: Sat Oct 01, 2011 7:06 pm
Posts: 1260
The Joomla! API already has JTable for that. You might even look at administrator/components/com_content/models/article.php which contains a class that you could use.


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 4 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