Coder Social home page Coder Social logo

contao-trigger's Introduction

contao-trigger

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

contao-trigger's People

Contributors

m-vo avatar richardhj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

richardhj pdir

contao-trigger's Issues

Internal Server Error

Wenn ich versuche einen neuen Trigger anzulegen erscheint ein Internal Server Error:
Bildschirmfoto 2019-05-18 um 11 09 09

Bildschirmfoto 2019-05-18 um 11 10 09

Hier die Error logs:

[2019-05-18 11:00:12] request.INFO: Matched route "contao_backend". {"route":"contao_backend","route_parameters":{"_route":"contao_backend","_scope":"backend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\BackendController::mainAction"},"request_uri":"https://contao.akroii.de/contao?act=edit&do=eblick_trigger&id=1&ref=wefaZYCN&rt=eBFicn153lA-r4coNnJ041pq3M5B15sAjeOqln3kHBU&s2e=1","method":"POST"} []
[2019-05-18 11:00:12] request.CRITICAL: Uncaught PHP Exception Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: "The "eblick_contao_trigger.listener.datacontainer.notification_action" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead." at /var/www/w35gbmh/htdocs/contao/vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php line 221 {"exception":"[object] (Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException(code: 0): The \"eblick_contao_trigger.listener.datacontainer.notification_action\" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead. at /var/www/w35gbmh/htdocs/contao/vendor/contao/core-bundle/src/Resources/contao/library/Contao/System.php:221)"} []

Mein System:
Php 7.3.1
Contao 4.7.5
Trigger Framework 1.0

Keine Auswahlmöglichkeiten nach der Installation

Nach der Installation des contao-trigger sind keine Auswahlmöglichkeiten verfügbar.
Contao 4.4.46, PHP 7.3, ContaoManager 1.2.2, keine Fehlermeldungen während der Installation

eblick_trigger-fehlende_auswahl

Eventuell eine Interaktion zwischen den installierten Erweiterungen? Hier die composer.json:
composer.json.txt

Ein Zugang zur Installation kann per E-Mail gerne bereitgestellt werden.

Trigger kann im Backend nicht aufgerufen werden

Hallo,

leider läuft der Trigger auf ein Problem im Backend.

Installation läuft durch. Versuche den ersten Trigger anzulegen.
Nach speichern und wiederaufruf kommt folgende Fehlermeldung:

Argument 3 passed to EBlick\ContaoTrigger\EventListener\DataContainer\Trigger::onShowSimulateButton() must be of the type string, null given, called in /var/www/vhosts...../vendor/contao/core-bundle/src/Resources/contao/classes/DataContainer.php on line 790

Installiert ist:

contao-trigger 1.0.3

Contao 4,9.3
Notification-Center 1.5.12

Vielen Dank

Josh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.