vulcandigital/silverstripe-pagefeedback
Composer 安装命令:
composer require vulcandigital/silverstripe-pagefeedback
包简介
This module allows you to add a form to any page type for the purpose of accruing feedback about how a user perceives that page.
README 文档
README
silverstripe-pagefeedback
This module allows you to add a form to any page type for the purpose of accruing feedback about how a user perceives that page.
Commonly found on help desk pages under a label similar to "How helpful did you find this page?".
It allows the user to rate the page out of five (5) and allows them to optionally provide a comment
The users IP address and their PHP Session ID is recorded on a per-page basis so that a user can only submit feedback once for that specific page.
Requirements
- silverstripe/cms: "^4.0"
Installation
Installation is supported via composer only:
composer require vulcandigital/silverstripe-pagefeedback "^2"
Configuration
This module is predominantly both a DataExtension and a Extension. You must apply them on the page type(s) and their respective controller(s) where you wish to be able to render the feedback form.
If you wanted to enable it's functionality on all pages you would:
Page: extensions: - Vulcan\PageFeedback\Extensions\PageFeedbackExtensions PageController: extensions: - Vulcan\PageFeedback\Extensions\PageFeedbackControllerExtensions
or for a specific page type
Vulcan\UserDocs\UserDocsPage: extensions: - Vulcan\PageFeedback\Extensions\PageFeedbackExtension Vulcan\UserDocs\UserDocsPageController: extensions: - Vulcan\PageFeedback\Extensions\PageFeedbackControllerExtensions
Modes
By default, the mode is set to "form" which will generate a form allowing a user to rate between 1-5 and optionally provide a comment
An alternate mode, "thumbs" is available which will generate a form containing two buttons +1 and -1, which can be beautifully styled:
You can change the mode via YML on the controllers of the pages you desire
Vulcan\UserDocs\UserDocsPageController:
pagefeedback_mode: "thumbs"
Adding the form
In order for the form to show you will need to add $PageFeedbackForm into your template, in the location you wish for it to display.
e.g.
<div id='myfeedbackform'> $PageFeedbackForm </div>
If you wish to hide the form if feedback has already been supplied by the user:
<% if not $GivenFeedback %> <div id='myfeedbackform'> $PageFeedbackForm </div> <% end_if %>
If you wish to display information about the feedback the user has provided:
<% if $GivenFeedback %> <% with $GivenFeedback %> <div id='myprovidedfeedback'> <% if not $Rating %> Rating: $Rating<br/> Comment: $Comment <% else %> You gave this page a thumbs <strong>$Thumbs</strong> <% end_if %> </div> <% end_with %> <% end_if %>
Features
- Adds a "Page Rating" section to the CMS Page Editor
- Adds a "Page Feedback" tab containing a
GridFieldof all feedback for that specific page
Inspiration
The form is provided to you unstyled, but each of the five radio buttons on the form have a class of pagefeedback-option-n where n is 1 through to 5 for easier customisation (ie swap the radio buttons with smiley faces that have different expressions; sad through to happy)
(inspiration courtesy of shopify docs)
License
vulcandigital/silverstripe-pagefeedback 适用场景与选型建议
vulcandigital/silverstripe-pagefeedback 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 429 次下载、GitHub Stars 达 9, 最近一次更新时间为 2018 年 02 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「form」 「silverstripe」 「Rating」 「feedback」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 vulcandigital/silverstripe-pagefeedback 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 vulcandigital/silverstripe-pagefeedback 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vulcandigital/silverstripe-pagefeedback 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This Extension integrates a credit check and more made by the LEONEX Risk Management Platform into your order process. Extensive configuration and evaluation options is provided in the Platform
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.
Analytics chooser extensions for site settings.
A Laravel Filament Forms slug field.
A jQuery augmented PHP library for creating and validating HTML forms
统计信息
- 总下载量: 429
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 1
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-02-12