symbiote/silverstripe-interactives
Composer 安装命令:
composer require symbiote/silverstripe-interactives
包简介
A simple mechanism for implementing tracked interactive elements
README 文档
README
A simple module to manage dynamic, interactive elements (including advertisements) on pages.
Maintainer Contact
Marcus Nyeholt
<marcus (at) symbiote (dot) com (dot) au>
Requirements
SilverStripe 4.x
See the 1.x branch for SilverStripe 3 compatible code
Documentation
Add
PageController:
extensions:
- Symbiote\Interactives\Extension\InteractiveControllerExtension
to your project's configuration yml file.
Note that interactives are inherited hierarchically, so setting ads on the Site Config will mean those ads are used across all pages unless specified for a content tree otherwise.
- Navigate to the "Interactives" section
- Create an Interactive Campaign
- Configure the campaign - "Use items as" refers to how items are displayed, based on
- Always random - every time the campaign is displayed, one item is chosen randomly
- Sticky random - the first time the campaign is displayed, one item is chosen randomly and always shown to that user on subsequent loads
- All - all items are returned and displayed (think a multi-item ad list)
- For the campaign site options, you can choose to display on the whole site, specific pages, or choose the whole site and exclude specific URLs
- Once configured at the top level, add the interactive items themselves.
Interactives
A single interactive has a few options with how it is displayed.
- Automatically generated link (Do not enter anything in the "HTMLContent" text area). If an image is attached to the interactive, this image is linked, otherwise the text in the Title field is linked
- Custom entered HTML (provide in the HTMLContent field)
- Binding to existing DOM nodes (only applicable if Location in / near element is set to "Existing content")
Target URLs for the interactive can be set as a fully qualified link, or an internal page object
- Relative Element is a jquery selector for inserting the interactive against; the "Location in" option provides the relative positioning to that element
- Display frequency allows for displaying to only a subset of users (ie to display to 20 percent of people, set this value to 5)
- The "Completion Element" is another jquery selector indicating the element on the target page that, if clicked, triggers a "complete" event for the given interactive. The usecase here being an interactive pointing to a userdefined form page, by setting this to the form submit button (eg #UserForm_Form_action_process) the submit of the form will be tracked
- If HTMLContent is filled out, this is used as the content of the interactive.
Elements
To use elements as the content source, add the following to your project config
Symbiote\Interactives\Model\Interactive:
extensions:
- Symbiote\Interactives\Extension\InteractiveElementalExtension
symbiote/silverstripe-interactives 适用场景与选型建议
symbiote/silverstripe-interactives 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4.6k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 02 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「silverstripe」 「advertisements」 「ad campaign」 「interactives」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 symbiote/silverstripe-interactives 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 symbiote/silverstripe-interactives 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 symbiote/silverstripe-interactives 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP library for interacting with the v2 MailChimp REST API
Symfony bundle for integrating the ZfrMailChimp library
Zend Framework 2 module for interacting with the v2 MailChimp API, built on top of ZfrMailChimp
Create short URLs via Bit.ly, tagged with Google Analytics Campaign data.
Analytics chooser extensions for site settings.
统计信息
- 总下载量: 4.6k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-02-09