Keyword

Structured Data for Rating in item view

  • Franz Heine
  • Franz Heine's Avatar Topic Author
  • Offline
  • Premium Member
More
2 weeks 1 day ago #173766 by Franz Heine
Franz Heine created the topic: Structured Data for Rating in item view
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
2 weeks 6 hours ago #173784 by Franz Heine
Franz Heine replied the 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
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
1 week 6 days ago #173793 by Fotis
Fotis replied the 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
1 day 1 hour ago #173987 by eugen
eugen replied the 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 "><meta itemprop="bestRating" content="5">
<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