hofff / contao-dca-notification
This library sends notification for any dca based data container
Installs: 69
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 0
Open Issues: 1
Type:contao-bundle
Requires
- php: ^7.4 || ^8.0
- contao/core-bundle: ^4.4
- doctrine/dbal: ^2.11 || ^3.1
- netzmacht/contao-toolkit: ^3.7
- symfony/config: ^4.4 || ^5.1
- symfony/dependency-injection: ^4.4 || ^5.1
- symfony/finder: ^4.4 || ^5.1
- symfony/http-kernel: ^4.4 || ^5.1
- symfony/translation-contracts: ^1.1 || ^2.0
- terminal42/notification_center: ^1.6.1
Requires (Dev)
- contao/manager-plugin: ^2.1
- doctrine/coding-standard: ^9.0
- phpcq/runner-bootstrap: 1.x-dev
Conflicts
- contao/manager-plugin: <2.1 || >= 3.0
This package is auto-updated.
Last update: 2024-12-07 18:29:48 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.