hello.

i am trying to create a block for top rated nodes based on the five star voting. i realize this may be tied into views but i am unable to find a tutorial out there that actually works. If anyone has any suggestions or tutorials they could point me to, that would be great.

Thanks!!

Comments

EpicName’s picture

- Step one -
Create a view
Create a block inside that view

- Step two -
Create a relationship "node: voting results"
Value type = percent
vote tag = normal
Aggregation function = average vote

- Step three -
Your going to wanna pass in the nid as an argument so:
Argument "node: nid"
and as your top field use "node: nid" as well (make sure to exclude from display)

- Step four -
create the "node: title" field and rewrite the output as something like this "target/[nid]"
create the field "(vote results)vote results: value"
set the relationship inside that field too use the relationship we have already set up

- Step five -
Set up your sorting methods
Set up your filters

- Step six -
PROFIT!

glitz’s picture

Nice!! thanks!!

EpicName’s picture

Status: Active » Closed (fixed)