Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzmany committed Jul 15, 2019
1 parent 77a0e5c commit dee1f2d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
'items' => [
'mautic.sqlConditions' => [
'route' => 'mautic_sqlConditions_index',
'priority' => 70,
'priority' => 49,
'iconClass' => 'fa fa-database',
'checks' => [
'integration' => [
Expand Down
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <a href="https://www.flaticon.com/authors/eleonor-wang" title="Eleonor Wang">Eleonor Wang</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a>

0 comments on commit dee1f2d

Please sign in to comment.