Skip to content

Commit 8522895

Browse files
author
Mario Blažek
committed
Install doc
1 parent 2e09f14 commit 8522895

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Resources/doc/INSTALL.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,46 @@ public function registerBundles()
3232
}
3333
```
3434

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+
3575
### Clear the caches
3676
3777
Clear the eZ Publish caches with the following command:

0 commit comments

Comments
 (0)