Skip to content

Commit dee1f2d

Browse files
committed
Update readme
1 parent 77a0e5c commit dee1f2d

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

Config/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
'items' => [
9494
'mautic.sqlConditions' => [
9595
'route' => 'mautic_sqlConditions_index',
96-
'priority' => 70,
96+
'priority' => 49,
9797
'iconClass' => 'fa fa-database',
9898
'checks' => [
9999
'integration' => [

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,42 @@ SQL conditions for Mautic
66

77
https://mtcextendee.com/plugins
88

9+
## Installation
10+
11+
### Command line
12+
- `composer require mtcextendee/mautic-sql-conditions-bundle`
13+
- `php app/console mautic:plugins:reload`
14+
- Go to /s/plugins and setup SQL Conditions
15+
16+
### Manual
17+
- Download last version https://github.com/mtcextendee/mautic-sql-conditions-bundle/releases
18+
- Unzip files to plugins/MauticSqlConditionsBundle
19+
- Go to /s/plugins/reload
20+
- Setup SQL Conditions integration
21+
22+
## Usage
23+
24+
1, See new item on left menu:
25+
26+
![image](https://user-images.githubusercontent.com/462477/61192212-1567ed00-a6b3-11e9-971e-eb3ab3df6beb.png)
27+
28+
2, Setup SQL conditions
29+
30+
3, Parameters for SQL
31+
32+
- :contactId
33+
- :campaignId
34+
- :eventId
35+
- :rotation
36+
37+
4, Condition return true If there is results
38+
39+
## Examples
40+
41+
Condition for contacts with ID greather like 2000
42+
43+
`SELECT l.id FROM leads l WHERE l.id = :contactId and l.id > 2000`
44+
945
## Credits
1046

1147
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 commit comments

Comments
 (0)