iainurquhart / DraftEE

Drafts and Workflow for ExpressionEngine 2
6 stars 2 forks source link

Some enhancements #2

Closed awheeler closed 13 years ago

awheeler commented 13 years ago

Hey Iain, I've made some enhancements to the code, it's providing a great basis for doing workflow here. I'll probably be making some more changes and doing some more bugfixing, as we'll be using this in a production environment. Thanks for starting this module.

1) Don't execute matrix dependant code if matrix isn't installed. 2) Fixed the permissions hack by adding settings on the Fieldtypes page so that you can select via checkbox which member groups can publish. 3) Removed the dependancy on passing the channel_id when creating a draft via ajax, as the pages module doesn't include the channel_id, and if you have the entry_id, you can get the channel_id easily enough. Neatened up the layout a bit (replaced spaces with tabs in some files). 4) Began work on a tab.draftee.php file to automatically generate the draftee tab, but this is not enabled by default. 5) Delete the entries from the draftee_drafts table when a publish close action takes place -- but if the entries are manually deleted, the draftee_drafts entries remain.

iainurquhart commented 13 years ago

Hey, I've merged this, untested but looking at the code I'd like to say thanks!

When I've got some time I'll revisit and help out too, cheers!

awheeler commented 13 years ago

Cool, let me know if you have any questions/comments.