i have a content type event with following fields date,type and using fivestar module for voting. The type takes 3 possible values ‘art’, ‘entertainment’, ‘iq’. i try to generate a block that should display top event (by votes) in each category. any one have idea ??
i have a content type event with following fields date,type and using fivestar module
Share
You should be able to do this relatively easy in a custom module, I have a hard time seeing how you would do this in views with the UI.
You need a query that looks something like this
You need to run a query for each value, art, entertainment and iq. If you want to make it more reliable, you should use
content_fields()andcontent_database_info()to get the table name and column name of your CCK field (which can change over time).