2

I have a views page with nodes in ordered list. I need to show the row number in the node in Full View. I don't know if it is possible.

Example:

  1. Michael Jordan
  2. Magic Johnson
  3. Kobe Bryant
  4. etc.

I want that when I see the node, for example Kobe Bryant, it says "Kobe Bryant is number 3". If I see Jordan's node it says "Michael Jordan is number 1", etc.

How can I print this number?

  • How is the view sorting those nodes? – rooby Feb 27 '14 at 2:53
  • Sort criteria (Vote results) Vote results: Value (desc) – Acertijo Feb 27 '14 at 3:11
  • Ah so it's vote related. So voting API? Which module are you using for voting? The best way is probably querying the vote results from the database as opposed to rendering that view and then checking the results. – rooby Feb 27 '14 at 3:40
  • Are you using rate module / fivestar module for voting ? – Anil Sagar Feb 27 '14 at 5:03
  • sorry i forgot to mention this, yes i am using fivestar :) – Acertijo Feb 27 '14 at 11:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.