Comments (5)
@Metis77
There is no way to generate an aggregated ratings view as of now.
It was requested in this issue: oveleon/contao-google-recommendation-bundle#4.
We did not plan to add one right now, but you are welcome to open a pull request if you would like to add it.
from contao-recommendation-bundle.
I prepared a template for us, that I could contribute of course.
But as the aggregated items needs to be related to another item (product, organization, ...) I am not sure, if a generic solution is possible.
from contao-recommendation-bundle.
@Metis77 They could be related to the recommendation archive, couldn't it?
Or are we talking about something similar to a product review?
@doishub added an auto-item feature that makes product ratings possible since version 1.4.0 via the auto item parameter. https://github.com/oveleon/contao-recommendation-bundle/releases/tag/1.4.0
-> 80dc9b7
from contao-recommendation-bundle.
Aggregated ratings need to relate to item (thing) that is being reviewed/rated:
https://schema.org/AggregateRating
Those things can be anything:
CreativeWork
Event
Intangible
MedicalEntity
Organization
Person
Place
Product
...
therefore I dont think a generic solution is possible.
In our specific case I made the rating relate to a product, which could look like this:
{
"@context": "http://schema.org/",
"@graph": [
{
"@type": "Product",
"name": "Granvogl - Spezialist für bedrucktes Porzellan& Glas",
"description": "Bearbeitung hochwertiger Produkte aus Porzellan, Glas oder Edelstahl",
"image": "https://granvogl.com/files/theme/img/PNG/logo_blue.png",
"sku": "0000",
"mpn": "0000",
"brand": {
"@type": "Brand",
"name": "Granvogl"
},
"offers": {
"@type": "Offer",
"availability": "https://schema.org/InStock",
"price": "10.00",
"priceCurrency": "EUR",
"url": "https://granvogl.com/Produkte"
},
"review": {
"@type": "Review",
"author": {
"@type": "Person",
"name": "Anonym"
}
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"bestRating": "5",
"ratingCount": "51"
}
}
]
}
Relating to an event or organization would look totally differen.
So I think there is no generic solution
from contao-recommendation-bundle.
See:
My approach for ratings would be implementing it via addSchemaOrg and create a new module for aggregated ratings that allows the usage of an archive.
from contao-recommendation-bundle.
Related Issues (12)
- Immer 5 Sterne HOT 3
- Recommendation wird nicht als Modul angezeigt HOT 2
- Bildgrößen werden ignoriert HOT 3
- Bundle doesn't work with Contao 4.13 HOT 3
- Bewertung als Inhaltselement HOT 1
- Entries not being shown - Google Recommendation Bundle HOT 1
- Improve field definition for form (order and mandatory) HOT 2
- [1.4.6] Dont import ProductInstaller classes which don't exists HOT 4
- Possibly wrong aliases in Contao 5 - usage of `Config::get('useAutoItem')`
- Parse img-size to recommendation details HOT 1
- 00 Uhr wird nicht akzeptiert HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contao-recommendation-bundle.