hi
i am fairly new to this drupal and i can't seem to get the rate widget integrated into view so i can output a chart on my custom page, i set up the relation to "vote results" and set to the the custom widget i created on rate. I have tried every option the field "vote results" is zero. My configuration is as follows:
Rate widget:
name: Reviews
tag: vote_tag
type: options
Views:
Relation Filter: Vote Results
tag: vote_tag
aggression: Number of votes
Fields:
Vote results: value
Vote: value
the vote results gives me a zero and also how can i print out the label of the option rather than than value. It is display correctly in results page of the node but i can't print a chart using that data or intergrate into view
Comments
Comment #1
alvinchacko CreditAttribution: alvinchacko commentedComment #2
Abdso CreditAttribution: Abdso commentedIn "Vote Results:Value" you have to set the appearance to "Rate widget".
Although I think Views integration is not working properly in this patch, because i use Fivestar widget and, in my case, when a user votes in the widget that appears in the View, the widget doesnt refresh and stay in "Saving vote..."
Comment #3
alvinchacko CreditAttribution: alvinchacko commentedstill doesn't work, shows me two errors:
Notice: Undefined property: stdClass::$nid in rate_views_widget() (line 1019 of C:\xampp\htdocs\drupal\sites\all\modules\rate\rate.module).
Notice: Undefined property: stdClass::$nid in rate_views_widget() (line 1024 of C:\xampp\htdocs\drupal\sites\all\modules\rate\rate.module).
what do i do?
Comment #4
Abdso CreditAttribution: Abdso commentedTry to add "Content:Nid" as contextual filter in your View.
Comment #5
alvinchacko CreditAttribution: alvinchacko commentedi have that added no change!
Comment #6
rat32 CreditAttribution: rat32 commentedYou may want to refer here which helped me out.
" https://www.drupal.org/node/1393868#comment-7346774
" Workaround: add a field from the node table in the view (nid, title,...). Of course you can exclude it from display.
Comment #7
fluxline CreditAttribution: fluxline commentedthanks for solution in #6 it removes the error, but then you can no longer do an aggregation, unless i'm missing something else in setting up an average of all the results, even if hidden, aggregation still takes this hidden field into account and only breaks it out per node.