If I only add one VotingAPI: Voting results field to my view, it works fine. If I add a second field (to get a different voting axis), the view returns no nodes.

Comments

Crell’s picture

Robert, can you describe what it is you're trying to do? I'm not sure what sort of view you're trying to build.

robertdouglass’s picture

I've got nodereview configured to have three review axes, lets call them "apple", "orange" and "pear". People review audio nodes on these three axes, giving them scores for apple, orange and pear. I want to build a view like this:

Title Uploaded by Artist Apples Oranges Pears
Duncan Robert Paul Simon 90 70 80
Roxanne Jimmy Police 60 50 70

The Apples, Oranges and Pears columns are supposed to be the average vote from the corresponding review axes. If I add Apples, it works. As soon as I add Oranges or Pears (the second axis, in other words) it stops working and views returns no nodes.

robertdouglass’s picture

I just *hate* that issues on drupal.org obey different filtering rules than other nodes. What's up with that?!?

Anyway, the table I was trying to show looks like this:

Title		Uploaded by		Artist		Apples	Oranges	Pears
Duncan		Robert			Paul Simon	90	70	80
Roxanne		Jimmy			Police		60	50	70
pshadow’s picture

I get the same issue with simplevote. i think it's a votingapi_views issue. When trying to use two VotingAPI: Results fields it returns nothing. I was trying to display vote average in one column and vote total in another.

robertdouglass’s picture

Project: NodeReview » Voting API

Changing to Voting API project.

nathanraft’s picture

I am having the exact same problem...

"When trying to use two VotingAPI: Results fields it returns nothing. I was trying to display vote average in one column and vote total in another."

Any help is greatly appreciated!

eaton’s picture

Version: 4.7.x-1.x-dev » 5.x-1.x-dev
Status: Active » Fixed

As of this evening at 2:06 AM, views integration for VotingAPI has been rewritten from scratch. All hail views! The good news? It should actually work. The bad news? You'll need to remove and re-add any VotingAPI fields that you had on existing Views. This shouldn't be problematic, as the old views integration was completely broken anyhow.

Caveats: Output formatting of vote results, etc is still being finished. In addition, much more testing is needed before it can be said that the new integration code is 'ready for prime time.' But it's definitely much better. I'm going to be closing the existing threads regarding VotingAPI and Views because all of them point to known issues with the *old* versions of the code. Those interested in testing the new code can download the latest VotingAPI from: http://drupal.org/node/128605

Thanks for your patience!

Anonymous’s picture

Status: Fixed » Closed (fixed)
najibx’s picture

Status: Closed (fixed) » Active

I'm sorry, it has been more than a year since this issue was close. Does the current support multiple axis in views? I already posted here as the value display in View's field were incorrect. http://drupal.org/node/298613

what's the workout if available?

thank you ...

eaton’s picture

Status: Active » Closed (won't fix)

Support for the 5.x branch of VotingAPI has ended with the release of Drupal 7 and the upcoming release of VotingAPI 7.x-2.4.