Forums

How to create content

ajb1967 17 Aug, 2010
HI,

I'm new to Chronoforms so apologise if this has been discussed before.

I have a form (LostProperty) that is connected to a database (jos_chronoforms_Lost_Property_Form_3)

I can see records in the database.

General Settings: Email the results? is set to "Yes"

Form Code: "On Submit code - before sending email" is as follows


<?php
$textfieldA = JRequest::getString('text_1', '', 'post');
$textfieldB = JRequest::getString('text_2', '', 'post');
$textfieldC = JRequest::getString('select_3', '', 'post');
$textfieldD = JRequest::getString('text_5', '', 'post');
$title = $textfieldA.$textfieldB.$textfieldC.$textfieldD;
JRequest::setVar('title', $title);
JRequest::setVar('sectionid', 7);
JRequest::setVar('catid', 18 );
?>


yet no articles are being created.

I suspect it's because i haven't changed the DB connection from the jos_chronoforms_Lost_Property_Form_3 table to the jos_content table

but I actually havent seen any tutorials that tell me thats what I need to do and I dont want my joomla database to blow up !

Can you advise what needs to be done next in order to get the records into the content database so that I can list the content by category in joomla ?

Also, do i need to set something for the "state" field, if so, what value would you suggest ?

Thanks,
Andy
GreyHead 17 Aug, 2010
Hi Andy,

The easy route is to downlaod the submit_content form from the Downloads area here and adapt that to your needs.

But yes, you need to connect to jos_content.

Bob
ajb1967 17 Aug, 2010
Thanks for your quick reply Bob.

Unfortunately I'm not able to find the submit_content download in the download area. What is the path to the component to be downloaded please.

Kind regards,
Andy
ajb1967 17 Aug, 2010
Perfect - Thanks again Bob!
This topic is locked and no more replies can be posted.