Keyword

Structured Data for Rating in item view

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
9 months 4 weeks ago #173766 by Franz Heine
Structured Data for Rating in item view was created by Franz Heine
i would like to add "Rating" structured data to my item.php

But i just have "votingPercentage" and "numOfvotes" to extend.

Does anyone have added structured data to the rating?

Please Log in or Create an account to join the conversation.

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
9 months 4 weeks ago #173784 by Franz Heine
Replied by Franz Heine on topic Structured Data for Rating in item view
solved it with a 3rd party extension

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
9 months 4 weeks ago #173793 by Fotis
Replied by Fotis on topic Structured Data for Rating in item view
K2 provides basic structured data support, but it's easy to be expanded with plugins. Or as you did, utilize a 3rd party solution.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

More
9 months 2 weeks ago #173987 by eugen
Replied by eugen on topic Structured Data for Rating in item view
Hello. I did it 3 or 4 years ago. If you need - i write here part of code, where you can see all fragments of code you need.

<div class="itemRatingBlock" itemprop="aggregateRating" itemscope="" itemtype=" schema.org/AggregateRating ">
<span></span>
<div class="itemRatingForm">
<ul class="itemRatingList">
<li class="itemCurrentRating" id="itemCurrentRating16441" style="width:0%;"></li>
<meta itemprop="ratingValue" content="0">
<li><a href="#" data-id="16441" title="1 star out of 5" class="one-star">1</a></li>
<li><a href="#" data-id="16441" title="2 stars out of 5" class="two-stars">2</a></li>
<li><a href="#" data-id="16441" title="3 stars out of 5" class="three-stars">3</a></li>
<li><a href="#" data-id="16441" title="4 stars out of 5" class="four-stars">4</a></li>
<li><a href="#" data-id="16441" title="5 stars out of 5" class="five-stars">5</a></li>
</ul>
<div id="itemRatingLog16441" class="itemRatingLog" itemprop="reviewCount">(0 votes)</div>
<div class="clr"></div></div><div class="clr"></div></div>

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum