Skip to content

SilverStripe 4 | Schedule campaign to be published at a future date

Notifications You must be signed in to change notification settings

onfire/schedule-campaign

Repository files navigation

Silverstripe 4 Schedule Campaign

A basic silverstripe module to add a date to campaigns to be published at a future date.

Features

  • Custom DB field type
  • Custom date fields added to campaign settings
  • Custom task to be run via a daily cron job to check status and time and publish a campaign when parameters are met

Requirements

  • PHP 7.4 or greater (tested with up to PHP 7.4)
  • Silverstripe 4

Installation

Usage

Add the following to you config file at app/_config/mysite.yml:

Silverstripe\Versioned\ChangeSet:
  extensions:
    - Onfire\ScheduleCampaign\Extensions\ScheduledPublishDateExtension

Then run dev/build

Once module is installed setup a cron job to run a task daily at 1am, ScheduledPublishDateTask: sake dev/tasks/ScheduledCampaignsTask

About

SilverStripe 4 | Schedule campaign to be published at a future date

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published