eblick/contao-trigger

Time and condition based trigger framework for notifications and other things inside Contao Open Source CMS

Installs: 82

Dependents: 0

Suggesters: 0

Stars: 7

Watchers: 4

Forks: 1

Open Issues: 0

Type:contao-bundle

v1.0.3 2019-06-20 09:21 UTC

README

This bundle adds an extensible condition ⇒ action framework to Contao OpenSource CMS. The condition checking is processed on a regular basis via a cron job. If one or more actions are executed a respective entry gets created in the trigger log.

Components

By default the following components are available:

  • Conditions

    • Table Records: Executes an action at most once for each of a selected table's rows if:

      A) a custom expression based on the table's columns is met

      category == 'things' and sum_total - coupon 2 > 100

      B) a field containing datetime information matches a given time constraint (e.g. 7 days later / 15 minutes before). When using the latter, the execution time can be overwritten (e.g. 3 days in advance, but at 6pm).

    • Point in Time: Executes an action as soon as a given point in time is reached. This allows basic scheduling.

  • Actions

    • Notification Action: Allows to send a custom notification via terminal42\notification-center (must be installed individually). The available simple tokens are based on the selected condition and are displayed in the backend.

Installation

Extending the framework