Posted by skipyT on September 17, 2008 at 11:54am
Jump to:
| Project: | Plus 1 |
| Version: | 6.x-2.3 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | skipyT |
| Status: | closed (fixed) |
Issue Summary
Hi,
I work with drupal 6 and views RC2. And I don't find the voting numbers in the views. the tables doesn't appears. please tell me what to do, or please patch the module to work with views RC2.
I found this in the Voting API API.txt document:
In the future, modules that need to offer highly customized ways of presenting VotingAPI data in a view are advised to use hook_views_data_alter() to simply add a new custom field to the VotingAPI table definition. That will give full control over display and filtering, but will take advantage of the flexible, base-table-agnostic join handlers VotingAPI provides.
This helps you?
Thanks, Skipy
Comments
#1
You will need to use Views 2 'Relationships'... I know, it is not obvious at all.
Apparently, there is no need to implement any hook on my end. The Voting API exposes its table..
In time, I will also provide one or two default views to get people going. When _I_ figure it out. I have not.
Views 2 is quite the beast!
#2
#3
See these issues:
http://drupal.org/node/310026
http://drupal.org/node/306553
There may be problems with the Voting API exposing the votes to Views now. But it's being worked on.
#4