Repeating schedules

Created on 18 November 2011, over 13 years ago
Updated 29 April 2024, 11 months ago

...very surprised not to find the word "repeat" or "rotate" in any of the issues for this module. The prospect of having certain content published on a repeating or rotating schedule just seems so natural...

  • You want some reminder up throughout the day on Mondays (every Monday but only on Mondays).
  • Put up the notice about the monthly meeting for the 1st week of every month.
  • Put up the holiday banners every fall.

Trying to do this with Rules or some type of trigger is very complicated. Some Views contrib can rotate content but it's really only for slide shows and the like...

Since Scheduler is already picking dates in a standard way, how hard would it be to support repeating dates?

Update - November 2020

iMiksu has designed and produced a functioning version of a sub-module for repeating schedules - start reading from comment #20 ✨ Repeating schedules Needs work for the details

✨ Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States videographics

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    And it needs to be updated to Drupal 10

  • πŸ‡ΊπŸ‡ΈUnited States SocialNicheGuru

    if you disable the module you need to do a cache clear or you might get:

    Class "Drupal\scheduler\Plugin\Field\FieldType\SchedulerRepeaterItem" does not exist in ReflectionClass->__construct() (line 26 of drupal10.2.6/html/modules/contrib/date_recur/src/DateRecurCachedHooks.php)

  • πŸ‡ΊπŸ‡ΈUnited States steyep

    Patch #24 rerolled for D10 compatibility

  • πŸ‡­πŸ‡°Hong Kong richard cheung

    Does this patch support content moderation?

  • πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

    This would be a great feature, to be sure. I mostly like the implementation in the patch in #28. I'd probably rather have less in the module file and more in a service, but that's no big deal.

    The patch didn't work for me though. I had to add a $node->save(); near the end of Drupal\scheduler_repeat\EventSubscriber::unpublish(). I'm using scheduler 2.x. Scheduler itself saves the unpublished entity before dispatching the unpublish event, so we have to save it ourselves if we want our changes to persist.

    As for #29:

    Does this patch support content moderation?

    Short answer is no. Long answer is that scheduler always needs the Scheduler content moderation integration β†’ module to work with workflows. Even with that module enabled, the repeater doesn't quite work. The reason is that the publish_state and unpublish_state get reset on publish and unpublish respectively by the scheduler_content_moderation_integration module which means they cease to be available for the scheduler_repeater module.

    So that's a pain. Getting this to play nice with scheduler_content_moderation_integration might require a patch over there.

Production build 0.71.5 2024