unlcms / project-herbie

Drupal 10 implementation at the University of Nebraska–Lincoln
https://cms.unl.edu
GNU General Public License v2.0
6 stars 6 forks source link

694 add scheduler module #729

Open sarongebre opened 3 months ago

sarongebre commented 3 months ago

Closes #694

For the Scheduler module to function properly, the scheduler module's cron job needs to be set up correctly. Currently, Drupal's cron is set to run every 3 hours. We likely don't want to wait that long for the scheduler cron to run. We might want to set it to run every 30 minutes or even every minute.

I'm also not sure where we would set the cron job. Publishing and unpublishing entities won't work if the cron job isn't set regularly. The module wasn't functioning correctly when I tested it, so I also had to install the Scheduler Content Moderation Integration module.

Permissions are set as follows image

Currently allowed entities to use the Scheduler module are Books, Builder page, Webforms, and News Items.

For the News content type, I have configured it so that once content is published, the creation time of the news item matches the scheduled publish date. I'm not sure if we want to keep this setting. I did this because we use the node creation time in a Twig file to display the time. This setting is turned off for all other content types. Additionally, I have enabled the creation of new revisions when an entity is published. image