Hi!
I am trying to integrate the yes/no widget in views, for rating a node
I chosed these settings for the widget :
*type: yes/no
*tag: helpful
*value type: options
*display settings for node: below the content/ full widget / full widget
*interaction: average rating / users vote
In view, I chosed for "relationship":
*node: vote results
-value type: other : Options
- vote tag: other : helpful
- aggregate function : number of votes
Then, in field, I added vote results : value (with label set to "valeur") and appearance set on "rate widget"
then I saved the view and, as you can see on the picture enclosed, the widget does not appear, it is only written "Valeur:", ie the label of the field
Do you have any idea why the widget is not showing?
I am stuck :-(
thanks in advance!
PS: I am using Voting api 6.x-2.x-dev
PPS: the widget shows in node, but not when node are displayed in view :-(
| Comment | File | Size | Author |
|---|---|---|---|
| integration in view3.png | 377.82 KB | craspouille |
Comments
Comment #1
dawehnerThat's the wrong way to access the nid here.
So in general to fix the issue votingapi would have to use add the base field to the query via $this->additional_fields
Comment #2
dawehnerand then the rate module would have to use this unique aliase to the nid field.
Comment #3
craspouille commentedThanks Dereine for your answer.
But :-) since I am French and I do not know anything about coding, I wonder what I should do with that : forward your message to the Rate module maintainer ?
thanks again!