I'm new in the "how to implement Rich Snippets into D7", therefore some advise is needed. Some others might also have faced this "issue".

So I installed schema.org module (also tried Microdata), but as we use display suite on every site I'd like to stick with schema.org. I realized that the Google testing tool has been updated recently (I didn't see the old one) and as far as I can tell it validates wrong or something is wrong on the site.

Anyways, here's what I found out. I simply want to add a itemtype to my “service” content type and define name, image and description. Everything seems to be fine, the output where the itemtype appears looks like this:

<div class="ds-1col node node-page-service view-mode-full clearfix" typeof="schema:Product sioc:Item foaf:Document" about="/services/online-marketing/search-engine-optimization">

and the google tool marks it with a notification - saying that the code is wrong.
Note: I have 4 additional services listed on this page which have the same markup, but for some reason those appear on the right.

If I remove the “sioc:Item foaf:Document” part from typof and revalidate the “Product” appears on the right side and everything seems to be correct - cool. Okay what next? I used the RDF Extensions module to get rid of the unneeded “sioc:Item foaf:Document” markup. New output of code:

<div about="/services/online-marketing/search-engine-optimization" typeof="schema:Product" class="ds-1col node node-page-service view-mode-full clearfix">

It is still marked as incorrect and I only see 4 products on the right. Two strange things about this: 1) the other 4 services have exactly the same markup and those are validated. 2) If I add a space after product like this: typeof="schema:Product " and revalidate it works again.

Please advise. I’m kinda stuck at this point. Any suggestion or hint is welcome!

CommentFileSizeAuthor
sd-3.png188.07 KBamshadyz
sd-2.png150.13 KBamshadyz
sd-1.png190.18 KBamshadyz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

amshadyz created an issue. See original summary.

scor’s picture

Issue summary: View changes
scor’s picture

Issue summary: View changes
scor’s picture

Could you say what exact error you are getting? You can see the exact error by clicking on the red link, for example: The property http://rdfs.org/sioc/ns#num_replies is not recognized by Google for an object of type Product.

What errors are you getting exactly? It would also help if you had more HTML (even the whole page) so I can debug.

slayer722’s picture

Hello,

Same problem for me :

With typeof="schema:Article sioc:Item foaf:Document" :
The tool say "The type is unknown".

With typeof="schema:Article" :
It's ok but other errors coming with http://rdfs.org/* and http://purl.org/*, properties are not recognized for object of type Article.

Regards