Steps required for drafts implementation

  1. Create a drafts table in the database (make sure the installer/updater script or whatever handles this).
  2. Create a model for the drafts table.
  3. Modify the JSRPC controller to save the current draft on render.
  4. Modify the edit controller to delete the current draft from the database on successful write of the new revision.
  5. Modify the edit view to display a "recover revision" link/button if one is available.

Ideas/Thoughts

  • Should drafts expire?

Drafts table SQL:

create table drafts (
  user_id int,
  page_id int,
  time timestamp,
  text contents
)
My tags:
 
Popular tags:
 
Powered by Catalyst