承接 libeo/pagerating 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

libeo/pagerating

最新稳定版本:v13.0.1

Composer 安装命令:

composer require libeo/pagerating

包简介

Page rating

README 文档

README

This extension adds a plugin that shows a comment form about the page, asking if the page was useful, then showing a textarea for a comment. The form is sent by Ajax and a confirmation message is displayed.

The form content is saved in the database.

Configuration

  1. Add the Site Set libeo/pagerating to your Site Package.
  2. Define the plugin.tx_lbopagerating.persistence.storagePid constant with the page uid where the comments should be saved.

Add the plugin on a page

  1. On the Page Module, add a content via the Create new content button.
  2. In the modal, select the Page Rating plugin.
  3. Define the header (type Hidden is preferred).
  4. In the Configuration tab, set the Title and Confirmation message to display. If none defined, the default will be used.

Add the plugin automatically in a template

The extension add a field named Display page evaluation block in the Behavior tab of pages. It can be used to trigger the display of the plugin automatically.

Here is an example of how to do this:

  1. Add the plugin somewhere in your site (ex: in a folder with reusable contents)
  2. Add a lib in your Site Package that look like that:
    lib.lbo_pagerating = CONTENT
    lib.lbo_pagerating {
      if.isTrue.field = lbo_pagerating
      table = tt_content
      select.uidInList = 123
      select.pidInList = 0
    }
    
    123 is the uid of the content created a step 1.
  3. In your Page Template, add a cObject View Helper:
    <f:cObject typoscriptObjectPath="lib.lbo_pagerating" data="{page.pageRecord}" />
    
    page is a variable available automatically in the template if a PAGEVIEW is used to render the pages.
  4. The cObject lib.lbo_pagerating will be displayed if the field Display page evaluation block is active on the page.

Labels and translation

You can use TypoScript to override the default Title and Confirmation message of the plugin.

plugin.tx_lbopagerating._LOCAL_LANG.default.form {
  title = How's your experience?
  saved = Your comments have been saved. Thanks!
}

See the Resources/Private/Language/locallang.xlf for all the labels.

Maximum comments length

You can configure the comment maximum length by configuring the constant plugin.tx_lbopagerating.commentsMaxChar. The default is 500 characters.

plugin.tx_lbopagerating.commentsMaxChar = 750

统计信息

  • 总下载量: 21
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 9
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-04-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固