Hi,
when you test an entry with the core field voting in Google Structured Data Testing Tool, you obtain this error :
"The review has no reviewed item specified"
Here is an example on flexicontent.org site :
- URL of a tutorial page with voting :
Réaliser son site de recettes avec FLEXIcontent
- URL of testing with Google Structured Data Testing Tool (
search.google.com/structured-data/testing-tool
):
Testing page
- warning Error
The review has no reviewed item specified
- portion of HTML code concerned :
Code:
<span itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
<meta itemprop="ratingValue" content="79" />
<meta itemprop="bestRating" content="100" />
<meta itemprop="ratingCount" content="16" />
</span>
[hr]
Here is a partial solution with the number id of the entity as item specified :
in file /components/com_flexicontent/classes/flexicontent.helper.php
~line 3268
i find the code
i add <meta itemprop="itemReviewed" content="'.$id.'" />
that give :
Code:
<meta itemprop="itemReviewed" content="'.$id.'" />
<meta itemprop="ratingValue" content="'.round($percent).'" />
<meta itemprop="bestRating" content="100" />
<meta itemprop="ratingCount" content="'.$rating_count.'" />
But that only give the id (number) of the entity
i can't obtain the title (i tried without success $item->title)
Could you help me to finish a better fix about this matter?