The Scheduler feature gives Store Admins the ability to schedule content on their website to be published and unpublished at specified dates in the future. This will be particularly useful for events and blog posts as they can be created in advance but scheduled to be published on a later date.
NOTE: This module will be enabled on IndieCommerce sites upon request. If you would like to give it a try, please send us a request from the Store Features page (Store > Configuration > Account Information and Preferences > Store Features)
ENABLE THE SCHEDULER FOR A CONTENT TYPE
Navigate to Structure > Content Types > Content type of choice (Page, Blog, Event, etc.)
-
Select the ‘Scheduler’ tab
-
Publishing - Enable the checkbox for ‘Enable scheduled publishing for this content type’
-
Change content creation time to match the scheduled publish time - If enabled, when the content is published, the content creation date will change to match the content published date
-
Require scheduled publishing - If enabled, a scheduled publish date will be required on all content within this content type (not recommended)
-
Create a new revision on publishing - If enabled, a new revision of the content will be created once published.
-
Advanced Options - should be left to the default
-
Unpublishing - Enable the checkbox for ‘Enable scheduled unpublishing for this content type’
-
Require scheduled unpublishing - If enabled, a scheduled unpublish date will be required on all content within this content type (not recommended)
-
Create a new revision on publishing - If enabled, a new revision of the content will be created once published.
-
Node Edit Page Layout: This will alter how this field is presented on the setup page
-
Vertical Tab - Will add a ‘Scheduling Options’ tab towards the bottom of the node along with the other configuration tab options (Menu settings, Revision information, Publishing options, etc.)
-
Separate fieldset - Will add a stand alone field to the node
-
Save content type
CREATE YOUR CONTENT & SCHEDULE YOUR PUBLISH/UNPUBLISH DATE
Navigate to Content > Add Content > Content of Choice
When you go to create or edit your content, you’ll now have an option for Scheduler (where this option appears depends on the Node Edit Page Layout setting). You can set the date and time to publish or unpublish this content.
The ‘Scheduler’ feature is executed by ‘Cron’, which is a time-based task scheduler to automatically execute tasks without manual involvement. On every IndieCommerce site cron runs every 3 hours, and will check for any content that is waiting to be published or unpublished. So, please note that content may not be published or unpublished at the exact time indicated in the scheduler, it could be off by up to 3 hours.