Create an article with a form.

multipianista 25 Sep, 2014
I would like to create an article everytime someone send a form. I mean, with my form I save the information in a database, so I need to create an article with that information.

Greets and thanks for reading.
GreyHead 25 Sep, 2014
Hi multipianista,

The simplest solution is to use CFv4 which has a Submit Article action designed to do just that.

There isn't a similar action for CFv5 yet - possibly because the Joomla! 3 article structure is much more complicated with more options for permissions, user groups and tags. You could use a Custom Code action to add the PHP to create an article if that helps.

Bob
multipianista 25 Sep, 2014
Do you mean a Custom Code with PHP to create an article?
If there were any code I can write to create an article, but is it posible to do it with PHP?
GreyHead 26 Sep, 2014
Hi multipianista,

Yes, you can do it with PHP - the code is fairly complex; you can get the basics from the CFv4 action and the more up to date and complex version from the Joomla! Content component.

Bob
This topic is locked and no more replies can be posted.