I am exactly in the same situation, I try to integrate the Microdata from schema.org into fivestar but I do not know where to begin, someone can tell me a solution?
Is already in D7, not sure it'll make it to D6, instead I would probably recommend over writing the display in D6 and filling out the correct micro-formats. That would be simpler.
I don't think we'll actually get MicroData working with D6.
Change "$node->field_rating[0]['rating']" with your own CCK field name.
I had to print the Fivestar CCK field like this in order to get the correct amount showing.
If I was using $node->field_rating[0]['stars'] it would just print the stars available, so that would result in 5 out of 5 everytime.
For Google Rich Snippets breadcrumb markup I added the following to the template.php file:
You can make Fivestar show google rich snippet by just spitting the output yourself just like @Klaphatten. In Drupal 7 this works with the microdata module to make it possible. But in short we won't support it.
That being said, We wont turn down any patches ;-)
Comments
Comment #1
LeMale commentedI am exactly in the same situation, I try to integrate the Microdata from schema.org into fivestar but I do not know where to begin, someone can tell me a solution?
Comment #2
LeMale commentedno one can provide a solution ?
Comment #3
ericduran commentedIs already in D7, not sure it'll make it to D6, instead I would probably recommend over writing the display in D6 and filling out the correct micro-formats. That would be simpler.
I don't think we'll actually get MicroData working with D6.
Comment #4
sbonde commentedI got Microdata working fine on several Drupal 6 installations using Fivestar 6.x-1.20 and Voting API 6.x-2.3.
I changed the Fivestar CCK field to show 5 stars and added the following to the review page:
Change "$node->field_rating[0]['rating']" with your own CCK field name.
I had to print the Fivestar CCK field like this in order to get the correct amount showing.
If I was using $node->field_rating[0]['stars'] it would just print the stars available, so that would result in 5 out of 5 everytime.
For Google Rich Snippets breadcrumb markup I added the following to the template.php file:
Just replace "themename" with the name of your own theme.
Hope this can be of use to someone.
Comment #5
plazik commentedThanks you, Klaphatten.
Breadcrumbs works for me fine.
Comment #6
ericduran commentedThis has been mention before.
You can make Fivestar show google rich snippet by just spitting the output yourself just like @Klaphatten. In Drupal 7 this works with the microdata module to make it possible. But in short we won't support it.
That being said, We wont turn down any patches ;-)