thelia/custom-contact-module

CustomContact module for Thelia

1.0.13 2024-07-17 15:56 UTC

This package is auto-updated.

Last update: 2024-10-17 16:50:10 UTC


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]