thelia/ custom-contact-module
Thelia 的自定义联系模块
1.0.13
2024-07-17 15:56 UTC
Requires
- thelia/installer: ~1.1
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]