定制 oveleon/contao-recommendation-bundle 二次开发

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

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

oveleon/contao-recommendation-bundle

Composer 安装命令:

composer require oveleon/contao-recommendation-bundle

包简介

Recommendation integration for Contao Open Source CMS

README 文档

README

The contao recommendation bundle adds recommendations to Contao 4.

Oveleon

Support

If you like this extension, we'd love your support in keeping the open-source spirit alive.

If you think this plugin is useful, please consider sponsoring us to help contribute to our time invested and to further development of this and other open source projects.

Your contributions, whether through coding, testing, providing feedback, or even a donation, help ensure that we can continue offering free open source software. Join us in making a difference, and thank you for your support! - Oveleon.

Working with Contao 4.13 and Contao 5.3+ (PHP ^8.1)

Description

This plugin adds a new sub-menu Recommendations with recommendation archives and recommendations

Features

  • Compatible with Contao 4.13 and higher versions (PHP 8 Support)
  • Possibility to create multiple recommendation archives
  • Possibility to create recommendation items
  • Frontend- and Backend permissions for archives and items
  • Access protection for modules
  • Recommendation list to display recommendation items
    • Choose multiple archives to display from
    • Filter by rating
    • Pagination
    • Featured recommendations (for sorting)
    • and more
  • Recommendation reader for recommendations
  • Recommendation form to let users submit their recommendations into a specific archive
    • Choose what users can submit
    • Get E-Mail notifications when people submit a recommendation
    • Moderation settings
    • Possibility to add a privacy checkbox
    • Possibility to activate an e-mail verification (opt-in) to verify recommendations
  • No IP-logging
  • Sitemap-Integration
    • Recommendations will be added to the sitemap.xml
  • Automatic purge of non verified recommendations
  • Cache invalidation

Installation

Via composer

composer require oveleon/contao-recommendation-bundle

Via contao-manager

Search for contao recommendation bundle and add it to your extensions.

After installing the contao-recommendation-bundle, you need to run a contao install.

Initial setup

The recommendation bundle is close to the core-bundles of contao cms. If you are familiar using the news- or events bundle, you should be able to set it up without further knowledge.

  1. Create a new archive in Recommendations

    Admin View: Recommendation Archive

  2. Create a new recommendation in your archive and fill out

    • Author
    • Date and time are set automatically but can be changed
    • Recommendation text
    • Choose a Rating (1 to 5)
    • Publish the recommendation

    Admin View: Recommendation

  3. To display your recommendations, you will need a recommendation-list.

    1. Create the front end module recommendation-list
    2. Choose your recommendation archive/s
    3. Choose the meta fields you want to show in your front end
    4. Embed the module in a page

    Admin View: Recommendation List

  4. Setting up colors for your recommendation rating

    • You can go to "settings" within Recommendations (Location of archives) and choose a color for active stars

    Admin View: Recommendation Archive Settings

  5. Setting up the recommendation alias

    • Within the recommendation settings, you can update the default-prefix for aliases when no title has been given

    Admin View: Recommendation Reader

  6. Setting up a recommendation-reader for a redirect page

    1. Create the front end module recommendation-reader
    2. Choose your recommendation archive/s
    3. Choose the meta fields you want to show in your front end
    4. Embed the module in a page or set it up for your recommendation-list
    5. Set up the redirect page in your recommendation archive/s

    Admin View: Recommendation Reader

Recommendation List on your website Admin View: Recommendation Frontend

Front end modules

Recommendation list

The recommendation list can display published (and verified) recommendations from selected archives.

Settings

Recommendation-List
Option Description
Recommendation archives Here you can select one or more archives to display recommendations from
Recommendation reader module Automatically switches to the recommendation reader if a recommendation has been selected
Minimum rating Filter displayed recommendations based on their rating (e.g. minimum of 3 stars)
Featured items Here you can choose how featured recommendations are handled
Sort order Here you can choose the sort order of recommendations (e.g. by date, rating, random)
Number of items Here you can limit the total number of recommendations that are shown
Items per page Number of recommendations per page - Activates pagination
Custom label Allows customizing the translation to for the redirect link
Meta fields Here you can select meta fields to display
Recommendation template The recommendation template that is being used
Module template The modules template that is being used
Use dialog popup Does not output the redirect link and embeds a dialog box instead. The `js_recommendation` template has to be included in the page layout
Image settings You have the possibility to add pictures to your recommendations. These are the image settings for them
Access protection Show the module for certain member groups only

Recommendation reader

The recommendation list can display published (and verified) recommendations from selected archives.

Settings

Recommendation-Reader
Option Description
Recommendation archives Here you can select one or more archives to read recommendations from
Overview page Adds the overview page to the template to not use ``javascript:history.go(-1)`` anymore
Custom label Allows customizing the translation for the overview link
Meta fields Here you can select meta fields to display
Recommendation template The recommendation template that is being used
Module template The modules template that is being used
Image settings You have the possibility to add pictures to your recommendations. These are the image settings for them
Access protection Show the module for certain member groups only

Recommendation form

The recommendation form can be used to let your visitors submit recommendations on your website. These recommendations will be saved in a preconfigured archive.

Settings

Recommendation-Form
Option Description
Recommendation archive Here you can select the archive that will save the submitted recommendations
Optional recommendation fields Here you can select one or more fields that will be added to the form. Author, rating and text are always mandatory.
E-Mail notifications Enable notifying the administrator when a recommendation has been submitted
Moderate If true, recommendations need to be published before appearing on the website.
Disable spam protection Disables the spam protection for the recommendation form
Data security Here you can add a label for a checkbox to make the recommendation form GDPR compliant. A checkbox will appear if you add any text.
Redirect page A redirect page to which visitors will be redirected after submitting the form
Send activation e-mail Enable e-mail opt-in verification for verifying submitted recommendations
Confirmation page A redirect page to which visitors will be redirected after clicking on the confirmation link
Activation message The activation message that users receive after submitting a form
Module template The modules template that is being used
Access protection Show the module for certain member groups only

Sitemap

Recommendation archives that are not protected and have a jumpTo page will add their published recommendations to your sitemap.xml. It is recommended to have a title for your recommendations as they are being used to create an alias. If you do not want certain recommendations to be shown on your sitemap, you can unpublish them.

Verified recommendations / GDPR

When adding a privacy text to the recommendation form, it will create a mandatory checkbox that visitors have to accept to submit their forms.

Recommendations that are created in the backend are verified by default. You have the possibility to set up an activation mail in recommendation forms that will be sent to the visitor. The submitted recommendations will not be shown on any list and can not be verified by the administrator. A cronjob will purge the unverified recommendations after 24 hours.

Admin View: Unverified Recommendations

The recommendation form does not save the IP of the user. However, it will save the e-mail-address of a user if they verified their recommendation with the opt-in token.

Bugs and feature requests

We appreciate your contributions when opening issues or requesting features. To help keep our issue list tidy, we may need to close issues if questions go unanswered.

Bugs

If you think you have found a bug please follow these guidelines

  1. Search for existing issues and check if your problem has already been reported
  2. Check if you are using the latest version and if the issue has been fixed already
  3. Provide a step-by-step tutorial on how to reproduce the issue in an isolated environment using only this bundle and the contao managed edition

Feature requests

Feature requests are welcome. But take a moment to find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Please provide as much detail and context as possible.

Example

An example how to style your reviews on your website

Admin View: Recommendation Exammple

oveleon/contao-recommendation-bundle 适用场景与选型建议

oveleon/contao-recommendation-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.9k 次下载、GitHub Stars 达 10, 最近一次更新时间为 2019 年 04 月 17 日, 在 PHP 生态内属于活跃度较高的组件。

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

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

围绕 oveleon/contao-recommendation-bundle 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 7.9k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 10
  • 点击次数: 12
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 10
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-17