File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,46 @@ public function registerBundles()
32
32
}
33
33
```
34
34
35
+ ### Set siteaccess aware configuration
36
+
37
+ Here is sample configuration for actions, the developer will need to define a list of actions to be run depending on the content type.
38
+ Configuration needs to be added in ` app/config/config.yml ` or ` app/config/ezplatform.yml ` :
39
+
40
+ ``` yml
41
+ netgen_information_collection :
42
+ system :
43
+ default :
44
+ actions_configuration :
45
+ ng_feedback_form :
46
+ - action : email
47
+ - action : database
48
+ other_form :
49
+ - action : database
50
+ some_other_form :
51
+ - action : email
52
+ ` ` `
53
+
54
+ Define fallback values for email, in case if content type does not have them defined:
55
+
56
+ ` ` `
57
+ netgen.default.information_collection.email.recipient :
' [email protected] '
58
+ netgen.default.information_collection.email.subject : ' Subject'
59
+ netgen.default.information_collection.email.sender :
' [email protected] '
60
+ ` ` `
61
+
62
+ Also define email templates for content types:
63
+
64
+ ` ` `
65
+ netgen.default.information_collection.email.ng_feedback_form : ' AcmeBundle:email:ng_feedback_form.html.twig'
66
+ netgen.default.information_collection.email.some_other_form : ' AcmeBundle:email:some_other_form.html.twig'
67
+ ` ` `
68
+
69
+ And fallback email template:
70
+
71
+ ` ` `
72
+ netgen.default.information_collection.email.default : ' AcmeBundle:email:default.html.twig'
73
+ ` ` `
74
+
35
75
### Clear the caches
36
76
37
77
Clear the eZ Publish caches with the following command:
You can’t perform that action at this time.
0 commit comments