libeo/pagerating

Page rating

Maintainers

Package info

github.com/libeo/lbo_pagerating

Type:typo3-cms-extension

pkg:composer/libeo/pagerating

Statistics

Installs: 21

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v13.0.1 2026-04-10 14:37 UTC

This package is auto-updated.

Last update: 2026-04-10 14:39:55 UTC


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