File tree Expand file tree Collapse file tree 6 files changed +71
-26
lines changed Expand file tree Collapse file tree 6 files changed +71
-26
lines changed Original file line number Diff line number Diff line change 1
- # Actions
1
+ Actions
2
+ =======
2
3
3
4
### Available actions
4
5
@@ -8,23 +9,14 @@ This bundle has some already developed actions:
8
9
9
10
Database action stores form data to database, to be specific, to ` ezinfocollection ` and ` ezinfocollection_attribute ` tables.
10
11
12
+ For advanced configuration please refer to [ configuration] ( CONFIGURATION.md ) part.
13
+
11
14
#### Email
12
15
13
16
Email action sends email with form data to configured email address, that may be set in content type or configuration.
14
17
For every content type different Twig template can be applied. Default template for emails must be specified.
15
18
16
- Per content type email template configuration example:
17
-
18
- ``` yaml
19
- netgen.default.information_collection.email.ng_feedback_form : ' AcmeBundle:email:ng_feedback_form.html.twig'
20
- netgen.default.information_collection.email.some_other_form : ' AcmeBundle:email:some_other_form.html.twig'
21
- ` ` `
22
-
23
- Default email template configuration example:
24
-
25
- ` ` ` yaml
26
- netgen.default.information_collection.email.default : ' AcmeBundle:email:default.html.twig'
27
- ` ` `
19
+ For advanced configuration please refer to [ configuration] ( CONFIGURATION.md ) part.
28
20
29
21
### Creating custom actions
30
22
@@ -74,9 +66,8 @@ netgen_information_collection:
74
66
default :
75
67
- email
76
68
- database
77
- content_type:
78
- my_content_type:
79
- - email
80
- - database
81
- - custom_action
69
+ my_content_type :
70
+ - email
71
+ - database
72
+ - custom_action
82
73
` ` `
Original file line number Diff line number Diff line change 1
- # Change Log
1
+ Changelog
2
+ =========
3
+
2
4
All notable changes to this project will be documented in this file.
3
5
4
6
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
Original file line number Diff line number Diff line change 1
- # Configuration
1
+ Configuration
2
+ =============
3
+
4
+ Some advanced use cases.
5
+
6
+ ## Specifiying which action to run per content type
7
+
8
+ By default all actions set by * default* under * actions* tree will be executed for all content types.
9
+
10
+ ``` yaml
11
+ actions :
12
+ default :
13
+ - email
14
+ - database
15
+ ` ` `
16
+
17
+ To run only specific action for given content type, for example *my_content_type* and *email* add this to configuration:
18
+
19
+ ` ` ` yaml
20
+ actions :
21
+ default :
22
+ - email
23
+ - database
24
+ my_content_type :
25
+ - email
26
+ ` ` `
27
+
28
+ Or to execute only *database* action for *my_content_type_2*:
29
+
30
+ ` ` ` yaml
31
+ actions :
32
+ default :
33
+ - email
34
+ - database
35
+ my_content_type :
36
+ - email
37
+ my_content_type_2 :
38
+ - database
39
+ ` ` `
40
+
41
+ ## Specifiying which email templates to use per content type
42
+
43
+ In case when want to split email templates per content type, rather than using default one all, add this to configuration:
44
+
45
+ ` ` ` yaml
46
+ action_config :
47
+ email :
48
+ templates :
49
+ default : ' AcmeBundle:email:default.html.twig'
50
+ my_content_type : ' AcmeBundle:email:my_content_type.html.twig'
51
+ my_content_type2 : ' AcmeBundle:email:my_content_type2.html.twig'
52
+ ` ` `
Original file line number Diff line number Diff line change 1
- NetgenInformationCollectionBundle
2
- =================================
1
+ Documentation
2
+ =============
3
3
4
4
## How it works
5
5
Original file line number Diff line number Diff line change 1
- # Field handlers
1
+ Field handlers
2
+ ==============
2
3
3
4
### Creating custom field handlers
4
5
Original file line number Diff line number Diff line change 1
- NetgenInformationCollectionBundle installation instructions
2
- ===========================================================
1
+ Installation instructions
2
+ =========================
3
3
4
4
Requirements
5
5
------------
@@ -12,7 +12,7 @@ Installation steps
12
12
13
13
### Use Composer
14
14
15
- Run the following from your website root folder to install Netgen InformationCollection Bundle :
15
+ Run the following from your website root folder to install NetgenInformationCollectionBundle :
16
16
17
17
``` bash
18
18
$ composer require netgen/information-collection-bundle
You can’t perform that action at this time.
0 commit comments