This module allows you to create custom contact
- 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
Add it in your main thelia composer.json file
composer require thelia/custom-contact-module:~1.0
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
}
]
[custom_contact_loop]
[custom_contact_field_loop]