Making form update an existing article.

The-Lord 27 Oct, 2009
Hello admins and fellow users,

I want to create a form inside an article. The article is to contain information about attributes certain things. The article and the form is to be visible and accessible to every user in joomla.

What I want to achieve is that the form when submitted should populate the article with the information. The form will actually make the content of that particular article according to the submitted data.
The attributes change frequently so if anytime the form is resubmitted by any user, the previous information in the article is to be overwritten by the newly submit data.

Can this be achieved? Treat me as a newbie who does not know anything and let me know the answer. 😟

Thanks a lot.
GreyHead 27 Oct, 2009
Hi The-Lord,

Yes, it can possibly be done but probably not by a newbie.

Start out with the submit_content form that you can get from the downloads area here.

Atrticles don't have many attributes so you'll probably need to store whatever inforamtion you need to build the article in a separate table and re-build and re-save the article content each time it is updated.

Bob
The-Lord 27 Oct, 2009
Hi GreyHead,

I was able to do it using the submit_content form. You mentioned that the article dont have that many attributes.. I was unable to add text box and drop downs data to post in the article itself.

You need to build the article in a separate table and re-build and re-save the article content each time it is updated.



So should I build a new table for the text_x , select_x , date_x data using the "Saving data into the database.pdf" file. Add its save information in before email section in the Form data.
After that in after email section in Form data, need to fetch the information from the saved data earlier. Am I correct?

If not, please let me know how to rebuild and resave the article content.

Thanks in advance.
GreyHead 27 Oct, 2009
Hi The-Lord,

Yes, that's pretty much how to do it.

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