hofff/contao-dca-notification

This library sends notification for any dca based data container

1.0.1 2022-04-07 12:49 UTC

This package is auto-updated.

Last update: 2024-05-07 17:15:29 UTC


README

This extension allows to send notifications in the Contao backend for any database based data container using the Notification Center.

Requirements

  • Contao ^4.9
  • PHP ^7.4 || ^8.0
  • Symfony ^4.4 || ^5.1

Install

You can install hofff/contao-dca-notification with Composer / Contao Manager.

Usage

  • Create a new notification of the type DCA Submit Notification and select the table.
  • A new legend Notification is created in the data container edit view
  • Check checkbox Send Notification and select the created notification

Tokens

All fields being available in the active record of the data container are available as tokens.

  • label_* The label of a field
  • raw_* The raw value of a field
  • value_* The parsed value of a field
  • admin_email The email of the admin

Limitations

  • This extension auto creates new columns for defined notifications but it does not delete it if the notifications are changed/deleted. This behaviour is designedly so that no configured notifications would be deleted accidentally. Use the install tool to clean up old columns instead.
  • Though this extension is designed for a generic use case it should work with third party extensions. If not feel free to provide an pull request to achieve compatibility.