cms problem

Soldato
Joined
1 Feb 2006
Posts
8,188
hi,

im implementing a cms at the moment for a uni project...i have to include a feature for adding articles whereby the user can view a preview of the article before confirming to submit it. Would the best way to do this be to insert all the data into a temporary database table and then view it from there.. then click on submit to copy the article into the proper table?

Any ideas on this would be welcome.

Thanks
Jonny
 
No, I'd insert the data into the "proper" table and set a status flag on the row to specify whether or not the article is live. Saves a lot of time, copying and temporary tables. You can then have a publishing page allowing the user to select which articles they wish to publish.
 
Last edited:
never thought of that! I will also be specifying an activation time for each article so I guess the two could work well together

Thanks for the info
 
Back
Top Bottom