4

I 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?

  • I think my way of asking this, made you think that it's not programming related. it absolutely is! –  Jan 18 '10 at 16:18
  • it is a web development question indeed. – Capi Etheriel Jan 18 '10 at 19:40
  • 2
    If this one is closed, a lot of other web development questions should be closed as well. However, I don't agree. Although this is not a programming question per se, the answer might involve programming. It simply depends if somebody already did the programming for you; the OP could not have known that beforehand. IMHO stackoverflow is the most appropriate site for this question when compared to siblings like serverfault or doctype. – marcvangend Jan 18 '10 at 22:33
  • It's considerable that I've done this by "Programming" at last! –  Jan 23 '10 at 03:14

1 Answers1

1

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.

cgp
  • 41,026
  • 12
  • 101
  • 131
  • 1
    +1 for turning subtitles into content-types. however, you can use views to display all of the subtitles uploaded for a given movie. panels (with the node_view page) can be used to display both the movie_node and the subtitle view at once, and also makes it a lot easier to pass in the arguments... – Capi Etheriel Jan 18 '10 at 19:39