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.
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.