Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb2551d

Browse files
committed
[documentation] add contact
1 parent e4d867f commit cb2551d

File tree

1 file changed

+20
-25
lines changed

1 file changed

+20
-25
lines changed

docs/plugins/contact.rst

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,35 @@
1-
.. note::
2-
3-
This documentation is under construction, more to come soon
4-
5-
6-
71
Contact
82
=======
93

10-
Add a contact form as a block
11-
124
Features
13-
~~~~~~~~
5+
--------
146

15-
- Insert here the different feature available for this plugin
7+
- Add a simple contact form as a block
168

179
Configuration
18-
~~~~~~~~~~~~~
10+
-------------
1911

20-
- Insert the yaml configuration for the DI
12+
You need to enable the module ``ioc.extra.mailer`` and configure the smtp settings.
2113

2214
.. code-block:: yaml
2315
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:
3121
32-
Events
33-
~~~~~~
22+
Usage
23+
-----
3424

35-
- List event or entry points for this plugin
25+
Create a ``contact.form`` node:
3626

37-
Architecture
38-
~~~~~~~~~~~~
27+
.. code-block:: yaml
3928
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'

0 commit comments

Comments
 (0)