re: Admin System - Temp Tables? Advice?

2012-03-21 Thread Jason Fisher
Or have a 'versions' table attached to the 'page' table. Versions can have status, with a maximum of 1 'published' for any given pageID, and versions can have publicationStart and publicationEnd dates. Gives you the flexibility of rolling back to previous versions as well. Just a thought.

Re: Admin System - Temp Tables? Advice?

2012-03-21 Thread Gerald Guido
I have done this three ways. I had an edit table (like your temp table) and that worked fairly well. I did versioning as Jason mentioned, that was a bit of a PITA. The other way was to use a preview page and I submitted the form data to the preview page via AJAX and populated it that way. The

Re: Admin System - Temp Tables? Advice?

2012-03-21 Thread Dave Watts
My current thought is to use a temp table(s) that: a. when visiting an edit page - LOADS the live data into the temp table b. all editing is done in the temp table c. once he likes it, he can hit the publish button, and the temp data replaces whatever is currently in the live table. d.

Re: Admin System - Temp Tables? Advice?

2012-03-21 Thread Claude Schnéegans
Most of the case, the user does not want a new item to be published bedore it is completed. For existing items, only little adjustements are made and this may be done on line. If it is your case, just add some Active logical field in the table and display the item only if the active flag is