hofff/contao-rate-it
Composer 安装命令:
composer require hofff/contao-rate-it
包简介
RateIt extension for the Contao Open Source CMS as contao 4 bundle
README 文档
README
This package hofff/contao-rate-it is a fork of Contao extension Rate It, provided as cgoIT/contao-rate-it-bundle with following differences:
Added
- Disable ratings for types which should not be used
- Migration command to migrate article ratings to page ratings
- Custom position for page ratings and
rateit_page_ratinginsert tag
Changed
- Change namespaces of every class
- Use microdata templates as default.
- Do not use client ip to detect votes of the same user. Use session id instead.
- The configured rating templates is used everywhere where ratings are used.
- Use Font Awesome as
rating_defaulttemplate - The rating for each element is retained when the element gets deleted. Ratings can be deleted in the backend.
Dropped
- Drop export feature
- Drop colorbox/mediabox rating
- Drop non microdata templates
- Drop support of heart ratings. Define your icons in a template
- Drop gallery picture rating
- Drop faq rating
Requirements
- At least Contao 4.6
- AT least PHP 7.1
- Integrated Font Awesome 5 (or a custom
rating_*template)
Configuration
You man want to configure the bundle using the application configuration (config/config.yml or app/config/config.yml)
depending on your project. Right now you are only able to disable supported content types.
# Default configuration
hofff_contao_rate_it:
types:
page: true
article: true
news: true
module: true
ce: true
If you use Contao just as a Symfony bundle (not a managed edition), don't forget to add the routing information to your routes.yaml:
# routes.yaml
HofffContaoRateItBundle:
resource: '@HofffContaoRateItBundle/Resources/config/routing.xml'
How to
Migrate article ratings to page ratings
The migration command migrates all article ratings to the corresponding pages
- Enables rating for pages with rated articles
- Create rating items for pages if not exist
- Reassign article ratings to the page
- Deletes article rating items
- Backup your database!
- Run vendor/bin/contao-console hofff-rate-it:migrate
hofff/contao-rate-it 适用场景与选型建议
hofff/contao-rate-it 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.27k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 01 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「bundle」 「Rating」 「contao」 「rateit」 「bewertung」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hofff/contao-rate-it 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hofff/contao-rate-it 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hofff/contao-rate-it 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Contao Open Source CMS
2lenet/EasyAdminPlusBundle
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
The bundle for easy using json-rpc api on your project
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.
Provide a way to secure accesses to all routes of an symfony application.
统计信息
- 总下载量: 1.27k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2019-01-24