eblick/contao-trigger

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

Installs: 442

Dependents: 0

Suggesters: 0

Security: 0

Stars: 16

Watchers: 4

Forks: 2

Open Issues: 1

Type:contao-bundle

v2.0.0 2023-04-12 07:42 UTC

This package is auto-updated.

Last update: 2024-11-12 11:28:38 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