Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
scor CreditAttribution: scor commentedThere 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.