alexstack/silverstripe-custom-page-with-contact-us-form 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

alexstack/silverstripe-custom-page-with-contact-us-form

Composer 安装命令:

composer require alexstack/silverstripe-custom-page-with-contact-us-form

包简介

SilverStripe Custom Layout Page with Contact Us Form & flexible frontend with Google Recaptcha.

README 文档

README

Latest Stable Version License Total Downloads

  • SilverStripe Custom Layout Page with Contact Us Form & flexible frontend with Google Recaptcha.

How to install

composer require alexstack/silverstripe-custom-page-with-contact-us-form

Rebuild the database and flush admin page

  • Run your-site-url/dev/build?flush=1 after composer install and refresh your admin page by /admin?flush=1

How to use it

Create a new page in SilverStripe admin and choose page type "Custom Page with Contact Us Form"

choose page type

Choose custom page layout

Choose custom page layout

Change Form Settings

Change Form Settings

Set up Google Recaptcha v2

Set up Google Recaptcha v2

Set up Google Recaptcha v3

Set up Google Recaptcha v3

Change global settings

Change global settings

Built-in page layouts

  • It will use your page.ss in your own theme folder for global layout. eg. it will use your own header/footer/css/js
  • Built-in page layouts use bootstrap 4.x for grid layout

Built-in layout 1: Content Left, Form right if enabled

Content Left, Form right if enabled

Built-in layout 2: Content Right, Form left if enabled

Content Right, Form left if enabled

Built-in layout 3: Content Top, Form bottom if enabled

Content Top, Form bottom if enabled

Built-in layout 4: Content Top, 3 cards below with Extra Images 1,2,3

Content Top, 3 cards below with Extra Images 1,2,3

Built-in layout 5: Two Contents per line, two lines with Extra Content 1,2,3

2 Contents per line, 2 lines with Extra Content 1,2,3

Use your own .ss template file for a custom page layout

  • eg. NewProductPage.ss. Please make sure the template file your-theme/templates/includes/xxx.ss already exists!
  • How to start the .ss: Copy vendor/alexstack/silverstripe-custom-page-with-contact-us-form/templates/Includes/CustomLayoutPage1.ss to your-theme/includes, rename it to NewProductPage.ss, change the .ss code inside to what you want. Just keep the variable names the same. custom-my-own-template-file
  • Do not forget to run ?flush=1 first to load your new .ss template

Contact Us Form display fields

  • There are some built-in fields. You can choose what fields will display from FirstName | Email | Phone | Message | LastName | Mobile | Company | Website | Address | Street | PostalCode | City | State | Country
  • Use | for the fields separator.
  • By default, the form will display: FirstName | Email | Phone | Company | Message
  • You can easily change Company to Address by replace it with: FirstName | Email | Phone | Company | Message
  • Or you can add more fields if you want.

Override the frontend form template

  • You can override the .ss template file if you want to add more fields or change fields display orders, or something else.
  • How to override: Copy vendor/alexstack/silverstripe-custom-page-with-contact-us-form/templates/Includes/ContactUsCustomForm1.ss to your-theme/includes, and add/change the html inside to what you want. Just keep the input field name the same.
  • Can I add more fields to the form? You can also add some extra fields to extend the form without touch a php file or database. Available extra field names are: ExtraData1, ExtraData2, ExtraData3, ExtraData4, ExtraData5, Category, MyDate
  • Override a form .ss template example screenshot: override-form-ss

View contact us form data

  • It will send an email to the notification email address after a form submitted
  • And you can view all the data in admin: view-contact-us-data

Thanks

  • Inspired by Fractaslabs' contact-page

License

  • BSD-3-Clause

alexstack/silverstripe-custom-page-with-contact-us-form 适用场景与选型建议

alexstack/silverstripe-custom-page-with-contact-us-form 是一款 基于 Scheme 开发的 Composer 扩展包,目前已累计 161 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 07 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「form」 「module」 「contact」 「contact form」 「silverstripe」 「contact-form」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 alexstack/silverstripe-custom-page-with-contact-us-form 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 alexstack/silverstripe-custom-page-with-contact-us-form 我们能提供哪些服务?
定制开发 / 二次开发

基于 alexstack/silverstripe-custom-page-with-contact-us-form 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 161
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: Scheme

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-07-01