Hello,
I need to make a form that will ask user info (title, text, meta ...) in order to create a new content article.
In fact I will ask image, files to attach to make a customized content text.
My question is how to create a new record with my info in jos_content table ?
Thanks by advance.
Gael
I need to make a form that will ask user info (title, text, meta ...) in order to create a new content article.
In fact I will ask image, files to attach to make a customized content text.
My question is how to create a new record with my info in jos_content table ?
Thanks by advance.
Gael
Hi Gael,
Try the ChronoForms content plugin first. That will let you add input from a form into the content table.
Bob
Try the ChronoForms content plugin first. That will let you add input from a form into the content table.
Bob
Hi Gael,
Bob means the content form pack at Downloads/CF Applications/
Regards
Max
Bob means the content form pack at Downloads/CF Applications/
Regards
Max
Thanks a lot that is exactly what i need, also I got a new problem:
I ask for an image (local path) to upload, and a file to upload,
I have to include these variables in my html template and then insert this one in jos_content.fulltext.
My idea is to make a variable like $fulltext='<p><img src="images/stories/'.IMAGE' /></p>'
and then $_POST=$fulltext
Also how can I invoke variable found in the form, in fact i want my piicture be upload in a specific path and then check the name of this picture in order to add it in fulltext
Thanks by advance
I ask for an image (local path) to upload, and a file to upload,
I have to include these variables in my html template and then insert this one in jos_content.fulltext.
My idea is to make a variable like $fulltext='<p><img src="images/stories/'.IMAGE' /></p>'
and then $_POST=$fulltext
Also how can I invoke variable found in the form, in fact i want my piicture be upload in a specific path and then check the name of this picture in order to add it in fulltext
Thanks by advance
Hi Gael,
Check out the recent posts in the forums. I've posted a code snippet to relocate uploaded files and Emmanuel posted a whole PlugIn to do image re-sizing and re-location. One of these should do what you need.
And your code for posting images looks as though it will work OK.
Bob
Check out the recent posts in the forums. I've posted a code snippet to relocate uploaded files and Emmanuel posted a whole PlugIn to do image re-sizing and re-location. One of these should do what you need.
And your code for posting images looks as though it will work OK.
Bob
This topic is locked and no more replies can be posted.