Skip to content

iainurquhart/DraftEE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

DraftEE

Module/Fieldtype combo for creating/publishing drafts of Channel Entries.

Just a module I'm experimenting with, very much proof of concept stuff that's nowhere near production use.

Overview

The fieldtype outputs a 'create draft' button on the publish page. When you hit 'creat draft' - the fieldtype does an ajax call to the module to essentially duplicate the entry and give it a status of Draft. The publisher can then switch to the Draft entry, and do edits there.

The entry can then be edited/saved safely away from the live entry (it's now another entry) but come time to publish/merge, the publisher can easily overwrite the originating entry with the updated content.

The field will also output a list of any drafts that exist for a given entry, allowing the author/admin to jump to drafts and then review/commit them to the entry.

All's well in theory, will be interesting when user permissions are thrown in the mix, and custom fieldtypes that store their data outside of exp_channel_data...

Will cross that bridge if I ever get there...

Fork

Caveats: I don't have an indepth understanding of EE. Just started hacking workflow for 2 days due to an urgent request.

  • Added support for Matrix data type. Matrix data will be updated accordingly when publishing a draft.
  • Added a giant ugly hardcode hack for user permission (Editor vs Publisher group) [ views/field_is_child.php - define constant function @ line 2]

About

Drafts and Workflow for ExpressionEngine 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published