Hi π
I've created a form with Chronoforms V5 and I want to create a Joomla article with the POST data of the form.
I've seen that with Chronoforms V4 there was an action called 'Submit Article' that permitted to create a new article on submit but in V5 one I didn't find this feature.
So, how can I create a Joomla article using POST data of the form?
Thank youπ
Sorry for my english and congratulations for this beautiful extension!π
I've created a form with Chronoforms V5 and I want to create a Joomla article with the POST data of the form.
I've seen that with Chronoforms V4 there was an action called 'Submit Article' that permitted to create a new article on submit but in V5 one I didn't find this feature.
So, how can I create a Joomla article using POST data of the form?
Thank youπ
Sorry for my english and congratulations for this beautiful extension!π
Hi malla,
There is no equivalent action yet for ChronoForms v5. It may come in the future BUT full support of article creation is quite a lot more complicated in Joomla! 3 with the changes in Categories and the introduction of Tags so that may not come very soon.
Meanwhile you could save to an article using a Custom Code action; or, possibly, use CFV4 for this form?
Bob
There is no equivalent action yet for ChronoForms v5. It may come in the future BUT full support of article creation is quite a lot more complicated in Joomla! 3 with the changes in Categories and the introduction of Tags so that may not come very soon.
Meanwhile you could save to an article using a Custom Code action; or, possibly, use CFV4 for this form?
Bob
Hi Bob,
thank you very much for your reply π
As you've suggested me, I've tried to create a form with CFv4 but this version gave me many errors, maybe because I've PHP 5.
For this reason I'm using CFv5 and my idea is redirecting to a new page(that I called prova.php) on Submit and, in this page, creating a new Joomla article.
I try to explain me better..
In CFv5 I've created a form and I've inserted a 'Redirect' action on submit tab. In the Redirect URL I've inserted: prova.php
Then, in prova.php I've added this code:
echo $form->data['descrizione'];
But I've an error: Undefined variable: form
Isn't possible to get POST data on the redirect url or am I doing wrong in getting POST data?
Thank you again,
Malla.
thank you very much for your reply π
As you've suggested me, I've tried to create a form with CFv4 but this version gave me many errors, maybe because I've PHP 5.
For this reason I'm using CFv5 and my idea is redirecting to a new page(that I called prova.php) on Submit and, in this page, creating a new Joomla article.
I try to explain me better..
In CFv5 I've created a form and I've inserted a 'Redirect' action on submit tab. In the Redirect URL I've inserted: prova.php
Then, in prova.php I've added this code:
echo $form->data['descrizione'];
But I've an error: Undefined variable: form
Isn't possible to get POST data on the redirect url or am I doing wrong in getting POST data?
Thank you again,
Malla.
Ok, I've resolved! I'm very happyπ
The solution that I've adopted is the following:
In CFv5 I've also added the 'Custom code' action before the 'Redirect' action. In the custom code I've inserted:
Then, in prova.php I've added:
and, finally I create a Joomla article with this dataπ
Thank you for your support Bob.
Malla
The solution that I've adopted is the following:
In CFv5 I've also added the 'Custom code' action before the 'Redirect' action. In the custom code I've inserted:
<?php
$session = JFactory::getSession();
$session->set('data', $form->data);
?>
Then, in prova.php I've added:
$session = JFactory::getSession();
$data = $session->get('data');
echo $data['id'];
and, finally I create a Joomla article with this dataπ
Thank you for your support Bob.
Malla
This topic is locked and no more replies can be posted.