Alternatives for Portal Engine's Content Rating module for Kentico MVC 12?

Jahan Zeb asked on July 14, 2020 12:06

Dears, Please guide me if there is any alternative in Kentico 12 or 12SP MVC for Kentico 12 Portal Engine's Content Rating module.

Looking forward for kind guidance.

Regards,

Recent Answers


Dmitry Bastron answered on July 14, 2020 13:17

Hi Jahan,

Unfortunately, there is no Kentico alternative for this module in MVC. And it's unlikely that it will be added later. It will also be completely removed in the next Kentico release. However, it should be quite easy to substitute it with some third-party frontend plugin like this one or this one. Otherwise, you would need to develop it yourself using Kentico APIs.

1 votesVote for this answer Mark as a Correct answer

Jahan Zeb answered on July 14, 2020 13:50

Thank you Bastron, can you guide me which API's I can use for this module. If you can give a reference.

Regards,

0 votesVote for this answer Mark as a Correct answer

Dmitry Bastron answered on July 14, 2020 18:02

To develop it from scratch in Kentico I'd suggest:

  • create a custom module with custom class storing NodeGUID (or DocumentGUID if ratings are culture specific), decimal RatingValue, int RatingsCount
  • when page loads query the rating from this custom class table by NodeGUID (or DocumentGUID)
  • when someone rates the page - recalculate the rating following the formula RatingValue = (RatingValue * RatingsCount + newSubittedRating) / (RatingsCount + 1); and increment RatingsCount
2 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.