开发者

Votingapi and vote up/down question

I have some nodes with a widget vote up/down. I can't understand how can i get integer votes value for various actions without sql requery. For example to 开发者_如何学JAVAhide nodes with rating < 10.


No matter what module you use,(Rate, Fivestar or anything else), all the data stored in Voting API module. Using Rules module and VotingAPI Rules integration module you can check values of votes and take arbitrary(but possible) actions. You may need to add new triggered rule on even "user votes on content" and check if the vote's value is < 10. Voting API keeps data as a percentage so < 10 means < 10%. Vote count, value of each vote and percentage available as data.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜