I've been trying to markup an Article content type with http://schema.org/Article microdata for the properties name, articleBody and keywords. I use a taxonomy for tags that are the keywords.
Any suggestions on how to get this to work?

Comments

Anonymous’s picture

The 'name' property should be added on the content type edit screen, in the same section that the itemtype is added. The 'articleBody' property should be added in the body edit screen, and 'keywords' property should should be added on the vocabulary edit screen.

jzornig’s picture

Thanks for your response. When I configure it like this the taxonomy terms are output with an itemscope containing the itemprop="keywords" so the keywords are not associated with the itemtype Article. This happens even if the "Handle as an item in microdata" is unchecked on the taxonomy edit form.

This is the output I get from Google's rich snippet tool

Item 
  Id:https://sandbox.ceit.uq.edu.au/ceit/node/2
  Type: http://schema.org/article
  name = An Article 
  articlebody = This article describes a new way to support microdata. 

Item 
  Id:https://sandbox.ceit.uq.edu.au/ceit/taxonomy/term/1
  keywords = new 

Item 
  Id:https://sandbox.ceit.uq.edu.au/ceit/taxonomy/term/2
  keywords = microdata
Anonymous’s picture

Category: support » bug

Thanks for reporting this back here, this is a bug. I think I'll have a chance to work on it over the weekend.

Anonymous’s picture

Title: How do you get the appropriate microdata emitted for keywords on articles » Unchecking 'Handle as item' doesn't remove itemscope
StatusFileSize
new2.38 KB

Changing the title to reflect the issue reported.

Attached is a patch that fixes the problem. I'll be committing this to dev soon.

Anonymous’s picture

StatusFileSize
new7.98 KB

Whoops, wrong one.

Anonymous’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.