Skip to content

thelia-modules/CustomContact

Repository files navigation

Custom Contact

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]