Hello,
I am trying to use a form to create content in Jommla. From all the postings I have read through I have a descent idea of what needs to happen and I have the example form. What I can’t seem to find is whether your form has to have the exact same data fields as the content table or if you can merge data onto the content page and format it. I have a form with a subject, a dropdown box with one numerical value, a check box, a text area, and three text boxes. I would like for this to all appear in my content text, in a specific order. I also need to pick which categories it saves this to via the form, which I think I have that part figured out. Any help would be great.
I am trying to use a form to create content in Jommla. From all the postings I have read through I have a descent idea of what needs to happen and I have the example form. What I can’t seem to find is whether your form has to have the exact same data fields as the content table or if you can merge data onto the content page and format it. I have a form with a subject, a dropdown box with one numerical value, a check box, a text area, and three text boxes. I would like for this to all appear in my content text, in a specific order. I also need to pick which categories it saves this to via the form, which I think I have that part figured out. Any help would be great.
Hi Yardsale,
You have to save the data using the column names in jos_content. The two main ones are 'introtext' and fulltext.
You can collect your article data in any way the at you like but then - in the OnSubmit Before box - you have to assemble it into one or other of these two variables to be saved in the database.
You can create a category drop-down list in your form to let the user pick from a list of existing categories.
Bob
PS There are code examples is the forums here and in the ChronoForms Book
You have to save the data using the column names in jos_content. The two main ones are 'introtext' and fulltext.
You can collect your article data in any way the at you like but then - in the OnSubmit Before box - you have to assemble it into one or other of these two variables to be saved in the database.
You can create a category drop-down list in your form to let the user pick from a list of existing categories.
Bob
PS There are code examples is the forums here and in the ChronoForms Book
This topic is locked and no more replies can be posted.