File tree Expand file tree Collapse file tree 1 file changed +20
-25
lines changed Expand file tree Collapse file tree 1 file changed +20
-25
lines changed Original file line number Diff line number Diff line change 1
- .. note ::
2
-
3
- This documentation is under construction, more to come soon
4
-
5
-
6
-
7
1
Contact
8
2
=======
9
3
10
- Add a contact form as a block
11
-
12
4
Features
13
- ~~~~~~~~
5
+ --------
14
6
15
- - Insert here the different feature available for this plugin
7
+ - Add a simple contact form as a block
16
8
17
9
Configuration
18
- ~~~~~~~~~~~~~
10
+ -------------
19
11
20
- - Insert the yaml configuration for the DI
12
+ You need to enable the module `` ioc.extra.mailer `` and configure the smtp settings.
21
13
22
14
.. code-block :: yaml
23
15
24
- element.plugins.cache :
25
- cache_control :
26
- - { "path": "^.*\\.(txt|jpg|png|gif|xls|doc|docx)$", "Cache-Control": ['public', 's-maxage=14212800']}
27
- - { "path": "^(blog|gallery).*", "Cache-Control": ['public', 's-maxage=3600']}
28
- - { "path": "^.*\\.rss", "Cache-Control": ['public', 's-maxage=3600']}
29
- - { "path": "^contact.*", "Cache-Control": ['private', 'must-revalidate']}
30
- - { "path": "^/$", "Cache-Control": ['public', 's-maxage=3600']}
16
+ ioc.extra.mailer :
17
+ host : smtp.localhost
18
+ port :
19
+ user :
20
+ password :
31
21
32
- Events
33
- ~~~~~~
22
+ Usage
23
+ -----
34
24
35
- - List event or entry points for this plugin
25
+ Create a `` contact.form `` node:
36
26
37
- Architecture
38
- ~~~~~~~~~~~~
27
+ .. code-block :: yaml
39
28
40
- - Provide information about how the feature is implemented
29
+ # /contact.yml
30
+ title : Contact
31
+ type : contact.form
32
+ email :
33
+ to : an-email@localhost
34
+ from : ' no-reply@localhost'
35
+ subject : ' Contact Form localhost'
You can’t perform that action at this time.
0 commit comments