Looking at http://schema.org/Recipe I can see that totalTime needs to be in the Duration/ISO format. We have the total time as a text field in the format e.g. "1 hour 20 minutes".

Is there a way to supply the correct format for parsing but output the more readable format when viewing?

This applies to any property/value, is there a way that the value can be different to what is viewed?

Comments

scor’s picture

Version: 7.x-1.0-beta4 » 7.x-1.x-dev
Category: Support request » Feature request

There is current not any way to do that for arbitrary fields, but if you use the https://drupal.org/project/recipe module, this will be handled automatically for you, because the recipe module generates its own markup for the duration fields.

We should have a way to do this for any field outside the scope of the recipe module though, so I'm changing this to a feature request.