Just wanted to know if there was a specific reason why this modules supports the text and image fields, but not the core number field. I wanted to add Microdata for the prepTime and cookTime properties as specified at http://schema.org/Recipe and was using a number_integer field. I wrote a simple hook_field_info_alter to add support for this field type and it seems to be working just fine:

/**
 * Implements hook_field_info_alter().
 */
function d7dev_field_info_alter(&$info) {
  $info['number_integer']['microdata'] = TRUE;
}

I would be happy to submit a patch if this is a desired feature.

Comments

Anonymous’s picture

Status: Active » Closed (duplicate)

I'm not sure why you copied #1291634: Add Support for Core Number Field and pasted it here, but this is a duplicate.

silkogelman’s picture

@linclark The duplicate issues in the microdata issue queue got me thinking: it turns out people are following an example given to them by a book.
More about this at #1914426: issue duplication spam?