Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
First off, thank you very much for a great tool. Up until now I have been able to create all sorts of different views, which has been a lifesaver. The issue I am having involves the Vote Tag under Relationship 'Node: Vote results.' I created a CCK fivestar field for one of my content types and set the 'vote axis' to points. When I try to select 'points' under Vote Tag, it is not listed. I checked phpmyadmin and the votes are being saved with 'points' as the tag. I am not sure if there is something I am missing. Any assistance would be much appreciated.
Thank you.
Comment | File | Size | Author |
---|---|---|---|
#8 | fivestar-tags.patch | 1.51 KB | eaton |
Comments
Comment #1
dawehnershouldn't this be a issue for fivestar?
views does not do the integration of fivestar or cck
Comment #2
eaton CreditAttribution: eaton commentedI'll take a closer look at this in a moment. Thanks.
Comment #3
eaton CreditAttribution: eaton commentedAre you using version 2.0 or later of VotingAPI? Not one of the release candidates? Using a 'clean' copy of VotingAPI 2.1, I'm seeing the following in the Views relationships form:
Comment #4
eaton CreditAttribution: eaton commentedAha, wait, I think I may be confused. You're talking about using the word 'points' as a vote tag in Fivestar, not using "point-style voting". Hmmm. Fivestar may need to implement a hook to announce to VotingAPI that it's using the extra tag data.
Comment #5
pnigro CreditAttribution: pnigro commentedThank you for the quick response, especially on the 4th of July. To answer your question I am using Votingapi 6.x-2.1.
Sorry for using the same name 'points' as a voting tag as it is an option under Value Type in Views. I changed the voting axis in fivestar to 'test' and when I tried to select 'test' under Vote Tag the option was not available. Shall I post this as an issue in fivestar?
Thank you
Comment #6
eaton CreditAttribution: eaton commentedI've moved it over to the Fivestar queue, but it's only an issue because of a change in VotingAPI 2.0's official release. I'll put a patch together in a bit and see if I can get it in. Thanks!
Comment #7
pnigro CreditAttribution: pnigro commentedThank you very much eaton for your assistance.
Comment #8
eaton CreditAttribution: eaton commentedInitial stab at the patch.
Comment #9
pnigro CreditAttribution: pnigro commentedThanks for the patch. I will give it a try and let you know how it goes.
Comment #10
eaton CreditAttribution: eaton commentedAlso, the -dev release of VotingAPI (soon to be VotingAPI 2.2) will include an 'other' option when building relationships that lets you choose tags/functions/etc that aren't explicitly announced by other modules.
Comment #11
ezra-g CreditAttribution: ezra-g commentedThis patch looks good and Views generates the right query using a test tag. Committed.
Thanks!