hofff / contao-rate-it
RateIt extension for the Contao Open Source CMS as contao 4 bundle
0.5.0
2026-09-16 10:13 UTC
Requires
- php: ^8.3
- ext-iconv: *
- ext-json: *
- ext-mbstring: *
- contao/core-bundle: ^5.3 || ^6.0
- doctrine/dbal: ^3.10 || ^4.4
- symfony/config: ^6.4 || ^7.4 || ^8.0
- symfony/console: ^6.4 || ^7.4 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.4 || ^8.0
- symfony/event-dispatcher: ^6.4 || ^7.4 || ^8.0
- symfony/http-foundation: ^6.4 || ^7.4 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.4 || ^8.0
- symfony/routing: ^6.4 || ^7.4 || ^8.0
- symfony/security-bundle: ^6.4 || ^7.4 || ^8.0
- symfony/security-core: ^6.4 || ^7.4 || ^8.0
- symfony/translation-contracts: ^3.0
- symfony/yaml: ^6.4 || ^7.4 || ^8.0
Requires (Dev)
- contao/comments-bundle: ^5.3 || ^6.0
- contao/manager-plugin: ^2.1
- contao/news-bundle: ^5.3 || ^6.0
- dg/bypass-finals: ^1.11
- phpcq/runner-bootstrap: @dev
Suggests
None
Provides
None
Conflicts
- cgo-it/contao-rate-it: *
- cgo-it/contao-rate-it-bundle: *
- cgo-it/news4ward-rateit: *
- contao/manager-plugin: <2.1 || >= 3.0
Replaces
None
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