thelia/custom-contact-module

Thelia 的自定义联系模块

安装: 87

依赖: 0

建议: 0

安全: 0

星标: 0

关注者: 9

分支: 1

开放问题: 0

类型:thelia-module

1.0.13 2024-07-17 15:56 UTC

This package is auto-updated.

Last update: 2024-09-17 16:30:05 UTC


README

本模块允许您创建自定义联系表单

安装

手动

  • 将模块复制到 <thelia_root>/local/modules/ 目录,并确保模块名称为 CustomContact。
  • 在 Thelia 管理面板中激活它

Composer

在主 Thelia composer.json 文件中添加它

composer require thelia/custom-contact-module:~1.0

使用

要创建新的自定义联系表单:访问 您的网站/admin/module/CustomContact

每个表单都有

  • 一个标题
  • 一个代码
  • 字段配置(查看下方)
  • 接收者电子邮件
  • 一个返回 URL(默认:/default_success)

字段配置示例(Json)

[
    {
        "label": "Nom",
        "required": false
    },
    {
        "label": "Prénom",
        "required": true
    }
]

循环

[custom_contact_loop]

[custom_contact_field_loop]