I make view with content type, which have a rate widget. I use "Fields" in show, so I need rate widget as a field.
I also want to sort nodes by rate, how do this?

Comments

earwax’s picture

The rating does not go into any field types. It just appends itself onto whatever content types you tell it to.

I do not know how to sort by rating view the Views. Might have to write a custom module for that.

OldAccount’s picture

Title: How put rete as a field in views? » How put rate as a field in views?

I wanted to do this as well and ended up using a Content display instead of Fields and then customized the node.tpl.php to get the fields I wanted. Not a perfect solution but it works.

OldAccount’s picture

Spoke too soon, no Content display and custom tpl.php needed, here are some good instructions (from the readme.txt file, go figure) on how to add ratings to a Views field display: http://drupal.org/node/1324956#comment-5174222

The key is adding the "Content: vote results" relationship and setting the right options (FYI, the "Value Type" for a Thumbs Up/Down widget should be set to points). Once the relationship is added, you should then have a "Vote results: value" sort option.

ivnish’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Drupal 7 is EOL. Issue will be closed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.