Drupal: how to rate node filefields? [closed]
开发者_如何学运维
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this questionI have a node type called 'movie' which may contain several subtitle files using the CCK FileField module. Now I'm dealing with FiveStars module, I need to rate each subtitle separately! so the user should rate for subtitles associated with a movie, not the movie itself.
confused enough! any idea?This is going to be a tough one as the whole FiveStars module isn't really built for rating anything but nodes. (so rating fields is probably out)
You could use "content multigroup" and that will allow you to pair up your file fields with an integer field. Note that content multigroup was a standalong module but is now being integrated with CCK3 which is still in development. Even with this, you will have to attach a JavaScript ratings tool (not a drupal module persay) to the field on your own as I'm pretty sure FiveStars is only designed to work against nodes, not specific fields, even less so for the multigroup fields.
So, if you want to stick to using FiveStars and as it's designed (not rewriting it to work with individual fields/multigroup), I'm pretty sure your only option is to split the subtitles into a separate content type and associate using nodereference. This will give the unfortunate side effect of having a separate page to actually do the reviewing. It certainly won't be as quick to rate a series of subtitles.
That's what I know from what I've used of those modules.
精彩评论