heimrichhannot/contao-submissions
Composer 安装命令:
composer require heimrichhannot/contao-submissions
包简介
A generic module to store and handle submissions in contao.
README 文档
README
A generic module to store form submissions in Contao. In contrast to Leads the storage is dca based.
Features
- Directly store form generator submissions (with included form type)
- Submissions organized in archives using a dedicated DCA including permissions handling
- Highly customizable: define new fields on the data container.
- Auto-creates palettes for your fields.
- Bundles double opt-in process.
- Export your submissions as (excel compatible) CSV
- Notification Center 2.0 support (terminal42/contao-notification_center)
- Integrated support for following extensions:
- Contao Fieldset Duplication - store data as blob for group widget, multi column editor or multi column wizard fields.
Install
- Install with composer or contao manager
composer require heimrichhannot/contao-submissions
- Update database
Usage
In the backend, you will find a new menu item called “Submissions”. Create a new archive with a title and select the fields that should be contained in your submissions.
Form generator
You can save your form generator submissions directly as a submission. Simply activate "Save as submission" and select the submission archive. The names of the form fields must be the same as the field names of the saved entity.
Use ##form_attachment_*## tokens in your notification center notifications to include attachments in your emails.
Opt in process
Use the built-in double opt-in process to verify submissions.
Create an opt-in challenge notification in notification center and select it on your form in the form generator.
You can also define a jump to page to which the user is redirected when the opt-in is successful.
If you want to bump a property at successful opt-in, set a boolean confirmation field (i.e. to set the field publish to true).
Use the following notification tokens in the opt-in notification:
| Token | Description |
|---|---|
##optin_token## |
To be replaced with the opt-in token |
##optin_url## |
To be replaced with the absolute opt-in url |
##email## |
Same as ##form_email##, but guaranteed to be in a valid email address format. Intended use as recipient email address. |
Export
Active "Allow export" in the submission archive settings to enable CSV export of submissions. Afterwards you will find an "Export" button in the submission list view.
Development
Fields on tl_submission
Take a look at dca/tl_submission.php for all available fields.
Adjust the dca to your needs.
Mark fields as noSubmissionField to make them unavailable for use as submission fields.
$dca = &$GLOBALS['TL_DCA']['tl_submission']; $dca['fields']['my_field']['eval']['noSubmissionField'] = true;
Events
| Event | Description |
|---|---|
| SubmissionsBeforeSendConfirmationNotificationEvent | Dispatched before success notification is sent. Requires enabled double opt-in. |
heimrichhannot/contao-submissions 适用场景与选型建议
heimrichhannot/contao-submissions 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.84k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2016 年 05 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「form」 「module」 「developer」 「contao」 「submissions」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 heimrichhannot/contao-submissions 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 heimrichhannot/contao-submissions 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 heimrichhannot/contao-submissions 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP Client for Keboola Developer Portal
Diese Contao 4 Erweiterung stellt Google reCAPTCHA V2 in Form eines neuen Formularfeldes im Formulargenerator bereit. This extension provides Google reCAPTCHA V2 in the form of a new form field in the form generator of Contao Open Source CMS.
This bundle offers a simple backend explanation form field (inputType).
Developer Tool: generate DataObjects using a simple form. Helps you create a fully ornamented DataObject.
A Laravel Filament Forms slug field.
A jQuery augmented PHP library for creating and validating HTML forms
统计信息
- 总下载量: 9.84k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 17
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2016-05-26
