I've never understood why you can't schedule the publication or unpublish a node in Drupal. WordPress does it. Joomla does it. Well guess what - Drupal does it too!
In this video, I'm going to show you how to use the scheduler module to publish and unpublished nodes on your schedule. Now, you won't have to go to work at midnight on Friday night!
"Hi and welcome to OSTips from OSTraining. I'm Rod Martin.
The scheduler module is found of course at https://www.drupal.org/project/scheduler. You can either download it, copy one of the locations, or use rush to install it.
There's nothing non-standard about it. Once installed:
- click on configure
There's not much here to do. You can allow users to enter only a date and use a standard time that's a global override. If you're not using Drupal's default cron, you'll need to run lightweight cron in order for this to work, but cron jobs are a topic for another video.
Scheduler only works with content. When you have it installed there's a new section here when you edit a content type called scheduler. You have a number of options enabled for this content type.
- change content creation time to match the scheduled publishing time
- require scheduled publishing
- create a new revision on publishing
- choice of a few Advanced Options
Action to be taken for dates in the past display an error message. Publish the content immediately after saving or schedule the content for publication on the next cron run.
For unpublishing, you can enable scheduled on publishing, require schedule done publishing, or create a new revision upon unpublishing the node.
Edit page layout is simply where the scheduler is going to appear. Will it appear in the vertical publication tabs on the right hand side and will it be expanded or not.
When somebody creates a new node, click save content type and add content. You'll notice scheduling options on the right. I can publish it on a particular date and a time and unpublish it on another date and time.
What's so fantastic about this of course is how I don't have to be around for the node to appear on my website.
Well it doesn't get much easier than the scheduler module for Drupal 8 for publishing and unpublishing content whenever you want.
Well thanks for watching. This has been OStips from OS Training."