定制 wbrowar/craft-communicator 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

wbrowar/craft-communicator

Composer 安装命令:

composer require wbrowar/craft-communicator

包简介

Tools that communicate project-specific information between clients, admins, and developers.

README 文档

README

Tools that communicate project-specific information between clients, admins, and developers.

Screenshot

For users of Guide 1.3.x and below: This plugin is a replacement for the three widgets that are included in Guide. These three widgets and all of their data will be removed from Guide in a future update: Website Updates, Welcome Widget, and Email Support.

Requirements

This plugin requires Craft CMS 3.1.1 or later.

Installation

Communicator can be installed through the Craft CMS Plugin Store, or by following these instructions:

  1. Open your terminal and go to your Craft project:

     cd /path/to/project
    
  2. Then tell Composer to load the plugin:

     composer require wbrowar/craft-communicator
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Communicator.

Communicator Overview

Communicator has three major features:

Changelog

A record of changes that have been made to the website or CMS that appears on a widget and in its own CP section.

Changelog includes:

  • A CP section that shows all changelog entries.
  • A widget that can be configured to show a desired amount of changelog entries.

Global Widget

Widget content that is created once and distributed to all users who have the widget on their dashboard.

Global Widget includes:

  • A widget that renders the content pulled from a single source.
  • A CP section that allows permitted users to create and update content in either Markdown or Twig formats.

Email Support

A widget that provides an email support form that can include details about the browser your client is using.

Configuring Communicator

Changelog Configuration

  • To view the Changelog CP section, the Access Communicator is required.
  • The Edit Changelogs permission is required to add and remove changelog entries.

Global Widget Configuration

  • To view the Global Widget CP section and edit Global Widget content, both the Access Communicator and Edit Global Widget permissions are required.

Email Support Configuration

  • Before a user may submit a support email, at least one support contact must be added.
    • Support contacts can be added on the Communicator plugin settings page.
  • The email form may be disabled in Communicator plugin settings, and doing so will display the support contact‘s email and—if provided—phone number.

All features are enabled by default, however, if you don‘t need a specific feature, the Communicator plugin settings page will allow you to completely disable a feature. Disabling a feature will not remove its widgets from user dashboards. A message will state that the feature is disabled and that the widget can be removed.

Using Communicator

Using Changelog

  • A user may add the Changelog widget to their dashboard and can configure the amount of changelog entries shown.
  • They can also get to the Changelog CP section by clicking on the Changelog sidebar link or the button that appears at the bottom of the widget.
  • Users with the ability to Edit Changelogs will see a form on the Changelog CP page that lets them add a new changelog entry.
    • Changelog entries use Markdown for rendering.
    • A template is provided to make editing easier, but it can also be ignored if this is not the desired format.
    • Using the specific headers, Added, Changed, Fixed, Deleted, as any level of header element, H1, H2, H3, H4, H5, H6, will result in specific styling and an appropriate emoji symbol.
      • For example, # Added will be converted to 🚀Added
    • Changelog entries can be removed by clicking on the Delete button next to each entry.

Using Global Widget

  • A user may add the widget that displays the Global Widget header and content and there is nothing to configure.
    • If the Global Widget content is in Twig format, the information will be shown in context for the logged in user.
  • Users with the Edit Global Widget permission, may visit the Global Widget CP section to edit the Global Widget content.

Using Email Support

  • Users who add the Email Support widget to their dashboard will be required to select a support contact before submitting a support email.

Communicator Roadmap

Some things to do, and ideas for potential features:

  • Provide a way to use a template path for Global Widget content so boilerplate content may be used from one project to another.
  • Disable the ability for a user to select their contact person in the Email Support widget by providing default contact information for specific users.
  • Add priorities to support emails and reflect that in the subject of the email.

Brought to you by Will Browar

wbrowar/craft-communicator 适用场景与选型建议

wbrowar/craft-communicator 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.01k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2019 年 01 月 18 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 wbrowar/craft-communicator 我们能提供哪些服务?
定制开发 / 二次开发

基于 wbrowar/craft-communicator 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 6.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-18