Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation about Workflow Reminder Task #78

Merged
merged 1 commit into from Nov 19, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -26,6 +26,14 @@ To apply workflow to files, add this to _config.php:


Object::add_extension('File', 'FileWorkflowApplicable'); Object::add_extension('File', 'FileWorkflowApplicable');


Periodically run the Workflow Reminder Task by adding a task like this one to the crontab:

*/1 * * * * cd /var/www && sudo -u www ./sapphire/sake dev/tasks/WorkflowReminderTask

This is an example only. The key is to run the task as the same user as the web server.

You can run the task manually for testing by visiting the `/dev/tasks/WorkflowReminderTask` URL of your site.

To enable embargo/expiry (scheduled publish/unpublish), use this: To enable embargo/expiry (scheduled publish/unpublish), use this:


Object::add_extension('SiteTree', 'WorkflowEmbargoExpiryExtension'); Object::add_extension('SiteTree', 'WorkflowEmbargoExpiryExtension');
Expand Down