It's probably worth doing some research on how to integrate with the Microdata module.
Just found this issue, feel free to ping me if you have any questions.
I wrote a patch that integrates the module with Entity API, and outputs microdata for every possible display type. To make it compatible with the Schema.org format, the birthday is converted to ISO format, with the timezone set to 'Z':
+ $timezone = new DateTimeZone('Etc/Zulu');+ $date_object = new DateTime($birthday->toString($display['settings']['dateformat'], $display['settings']['dateformat_noyear']), $timezone);+ $microdata['birthday']['#attributes']['content'] = $date_object->format("Y-m-d\TH:i:s");
However, I'm not sure whether microdata should be made available for all display types, like when showing just the star sign. What do you think?
I updated the patch to give suggestions for the schema.org mapping.
When I said "feel free to ping me", that was meant for the maintainer to ping if he had any questions while working on the patch. Since then, colette posted a patch.
Feel free to test it. If you have any problems, you can post them here.
...well colette had a question back in #2 and it was unanswered. Thus the ping. Didn't mean to be a nuisance.
I'll test the patch with the first chance I get.
colette is my GSOC student, so don't worry, she pings me personally when she has questions for me.
Testing this would be fantastic, thanks!
This issue has no child issues.
Drupal is a registered trademark of Dries Buytaert.