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 :-(

CommentFileSizeAuthor
integration in view3.png377.82 KBcraspouille

Comments

dawehner’s picture

Project: Rate » VotingAPI Field
Version: 6.x-1.2 »
Category: support » bug
      $content_id = $columns->nid;
      if (isset($columns->node_type)) {
        $node_type = $columns->node_type;
      }

That'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

votingapi_views_handler_field_value.inc
dawehner’s picture

and then the rate module would have to use this unique aliase to the nid field.

craspouille’s picture

Thanks 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!