XF 2.2 itemreviewed error in Google search console

Solution
This should be disregarded. Google has decided to arbitrarily limit the data types they allow ratings for. This is not explicitly limited by the structured data specification and other services do indeed display the ratings.
This should be disregarded. Google has decided to arbitrarily limit the data types they allow ratings for. This is not explicitly limited by the structured data specification and other services do indeed display the ratings.
 
Solution
For those looking for an alternative to ignoring this issue:

All my resources are downloadable programs, so it made sense to change the schema type from CreativeWork to SoftwareApplication.

This is the list of types that Google allows, pick a type that matches your content
Code:
http://schema.org/Book
http://schema.org/Course
http://schema.org/CreativeWorkSeason
http://schema.org/CreativeWorkSeries
http://schema.org/Episode
http://schema.org/Event
http://schema.org/Game
http://schema.org/HowTo
http://schema.org/LocalBusiness
http://schema.org/MediaObject
http://schema.org/Movie
http://schema.org/MusicPlaylist
http://schema.org/MusicRecording
http://schema.org/Organization
http://schema.org/Product
http://schema.org/Recipe
http://schema.org/SoftwareApplication

Fairly easy to do via Template Modifciation, just do like this:

Template:
xfrm_resource_view

Find:
"@type": "CreativeWork",

Replace:
Code:
"@type": "SoftwareApplication",
^ replace with your type

Then test using this tool:

It will tell you what fields you need to add (ignore optional fields unless you wanna add them). Check the types expecting for each field at https://schema.org to ensure compliance . These are typically just text, but sometimes nested objects are required which might be too complicated for noobs.

Add them and re-run the test until it's happy

This ended up being all I needed to put in the replace:
Code:
"@type": "SoftwareApplication",
"operatingSystem": "Windows",
"applicationCategory": "Gaming",
 
Starting with version 2.3, this data is stored not in the template, but in the file
\src\addons\XFRM\Entity\ResourceItem.php

In the template, we have a section
Code:
<xf:page option="ldJsonHtml">
<script type="application/ld+json">
{{ $resource.getLdStructuredData()|json(true)|raw }}
</script>
</xf:page>

which can be remade
 
Back
Top Bottom