It's probably worth doing some research on how to integrate with the Microdata module.

Comments

linclark’s picture

Just found this issue, feel free to ping me if you have any questions.

colette’s picture

StatusFileSize
new6.31 KB

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?

colette’s picture

StatusFileSize
new7.44 KB

I updated the patch to give suggestions for the schema.org mapping.

klonos’s picture

@linclark: ping?

linclark’s picture

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.

klonos’s picture

...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.

linclark’s picture

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!