We can set a node as a voting target when using the node reference cck field.

Would it be possible to set a term as voting target, since in D7 we work with entity's we now could rate a term, so we also could create a review node for a term.

Comments

ericduran’s picture

Yes, totally possible, Also not extremely hard, someone just needs to write the code.

mfoda’s picture

does that mean that this is not possible right now with the current release (7.x-2.0-alpha2)?

Michsk’s picture

yes, it is as this moment not possible to rate terms.

mfoda’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha2

would either of you guys be willing to help me with writing the code for this? I managed to set my voting target to the taxonomy term itself (using an entity reference field), and I also added the fivestar rating fields under the term's page. So I don't see why this wouldn't work since terms are also entities.

Please let me know. If not, I will go ahead and create a node for each taxonomy term and target the votes on the node reference field instead of the term reference. I would rather not do it though.

Thanks

Michsk’s picture

You didn't understand correctly.

It is possible, but not right out of the box.

mfoda’s picture

Can you please explain. How can I make it work if it's possible? Do I need custom code?

mfoda’s picture

By the way I have installed the patch to enable targeting fields from the entity reference module. So I can actually target the term reference field in the widget's settings. It's just that when I add the fivestar field in my views it shows zero votes if I enforce the entity reference relationship. I think it's because in my relationships I have "Content: vote results" but I actually need "term: vote results". Couldn't get this to work.

krem’s picture

Hi there,

Could you confirm that what I need is also possible, if so I will work on the code :

User A creates taxonomy terms corresponding to games he plays, for exemple he could create on his profile the terms 'Modern Warfare / Diablo III / Grand theft Auto'.

I would like to let users rate (Noob -> Expert) each other terms :
+ User C rates as 'Noob' User A in 'Modern Warfare'
+ User D rates as 'Normal' User A in 'Modern Warfare'

In the end I want to get ratings for each term of each user, do you think it's possible ? Do you see a better solution ? Do you need me to explain better my needs ?

Best Regards,
Clem

UPDATE:
I believe I found a solution in my case by simply creating nodes with a taxonomy term field and rate field

warmth’s picture

I'm also trying to create a rating system for terms.

One user update a file and create/select up to 3 tags for it. Other users grade the content tagged from 1 to 5 but also they can review each tag so if the user tagged the file with a fake tag that tag will get a very bad rating so I can rearrange a view to display the contact tagged with X tag by how much that tag represents the content.

Is that possible?