Giter Site home page Giter Site logo

Comments (5)

zoglo avatar zoglo commented on June 27, 2024

@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.

Metis77 avatar Metis77 commented on June 27, 2024

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.

zoglo avatar zoglo commented on June 27, 2024

@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.

Metis77 avatar Metis77 commented on June 27, 2024

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.

zoglo avatar zoglo commented on June 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.