mojomojo.org
/development/drafts
Steps required for drafts implementation
- Create a drafts table in the database (make sure the installer/updater script or whatever handles this).
- Create a model for the drafts table.
- Modify the JSRPC controller to save the current draft on render.
- Modify the edit controller to delete the current draft from the database on successful write of the new revision.
- 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
)