diff --git a/Config/config.php b/Config/config.php index 1a33b86..abd4507 100644 --- a/Config/config.php +++ b/Config/config.php @@ -93,7 +93,7 @@ 'items' => [ 'mautic.sqlConditions' => [ 'route' => 'mautic_sqlConditions_index', - 'priority' => 70, + 'priority' => 49, 'iconClass' => 'fa fa-database', 'checks' => [ 'integration' => [ diff --git a/README.md b/README.md index 47a928a..98bb35f 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,42 @@ SQL conditions for Mautic https://mtcextendee.com/plugins +## Installation + +### Command line +- `composer require mtcextendee/mautic-sql-conditions-bundle` +- `php app/console mautic:plugins:reload` +- Go to /s/plugins and setup SQL Conditions + +### Manual +- Download last version https://github.com/mtcextendee/mautic-sql-conditions-bundle/releases +- Unzip files to plugins/MauticSqlConditionsBundle +- Go to /s/plugins/reload +- Setup SQL Conditions integration + +## Usage + +1, See new item on left menu: + +![image](https://user-images.githubusercontent.com/462477/61192212-1567ed00-a6b3-11e9-971e-eb3ab3df6beb.png) + +2, Setup SQL conditions + +3, Parameters for SQL + +- :contactId +- :campaignId +- :eventId +- :rotation + +4, Condition return true If there is results + +## Examples + +Condition for contacts with ID greather like 2000 + +`SELECT l.id FROM leads l WHERE l.id = :contactId and l.id > 2000` + ## Credits Icons made by Eleonor Wang from www.flaticon.com