Scheduler - How-to guide

Version: 7.x-1.0
URL: http://drupal.org/project/scheduler

What is Scheduler?

This module allows nodes to be published and unpublished on specified dates and times.

How to modify the Settings:

After installing Scheduler and enabling the module there are no settings to modify from the Modules page. Permissions (People > Permissions) can be regulated in which the options are Administer Schedule and Schedule Content Publication.

To modify settings for Scheduler go to Configuration > Scheduler Module Settings. The first setting you can modify is the Date format. I chose to change the default to (H:i:s, F d, Y) which represented as (July 01, 2011, 16:19:30).

The next setting to modify is Field Type. The options are Standard text field (default) or Date Popup Field. In order to utilize Date Popup Field, Date Popup must be enabled which is in the Date module. Date Popup Field is much easier to use because it allows the user to visually click on a day from a calendar instead of typing it in. The time is the tricky part which I will discuss later.

There is also an option to add information above the scheduling fields by using the Extra Info box. This is a good way to inform people of possible issues such as reminding people that the Date format is using a 24-hour format.

While under Configurations > Scheduler Module Settings there is a tab labeled Lightweight Cron. This is an independent cron job which only runs the scheduler process. On this page there is an option to “Run Scheduler’s Cron Now” which pushes information in order to test to see if your Scheduler works. However, you must first create a publish or unpublish time for a node.

The last tab under Configurations > Scheduler Module Settings is Time Check. This is to make sure your Drupal site is matching the “localtime” so that Scheduler will work with your appropriate time. If not, you can adjust your sites date and time under Configurations > Date and Time.

How to use Scheduler:

After you have modified the settings to your liking you must enable scheduled publishing for a content type(s) by going to Structure > Content Type. After you select edit for a content type, towards the bottom left corner of the page you can find a menu with the title Scheduler Settings. There are two options, publishing settings and unpublishing settings. In order for Scheduler to work you must select the check boxes “Enable scheduled publishing” and “Enable scheduled unpublishing.” Only one of the options needs to be selected for Scheduler to work. Depending on your preference you might not want a node to be unpublished. You also might want the node to be published immediately and want to use Scheduler to unpublish the node at a later time.

There are other boxes you can select. For example…Publishing date/time is required. This requires the user to insert a date and time instead of skipping over the field, which would result in immediate publishing of the node after saving.

The End User:

After you have enabled Scheduler for a content type a user can now set a publish and a unpublish time by clicking Add Content and choosing the appropriate content type. At the bottom left corner of the page there is a menu link that is labeled Scheduling options. Scheduler now gives the user an example of how to insert the date and time. Once the fields are complete the user must save before the node is set to publish and/or unpublish.