thelia / custom-contact-module
CustomContact module for Thelia
Installs: 92
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 9
Forks: 1
Open Issues: 0
Type:thelia-module
Requires
- thelia/installer: ~1.1
README
This module allows you to create custom contact
Installation
Manually
- Copy the module into
<thelia_root>/local/modules/
directory and be sure that the name of the module is CustomContact. - Activate it in your thelia administration panel
Composer
Add it in your main thelia composer.json file
composer require thelia/custom-contact-module:~1.0
Usage
To create a new custom contact form : go to your-site/admin/module/CustomContact
Each form have :
- a title
- a code
- a field configuration (look behind)
- the receiver email
- a return url (default : /default_success)
Example basic of field configuration (Json):
[
{
"label": "Nom",
"required": false
},
{
"label": "Prénom",
"required": true
}
]
Loop
[custom_contact_loop]
[custom_contact_field_loop]