4

I have created a content type named Ranking and also created a field rank this content. If I give rank 1,2,3 and so on.

Content should display according to rank, the content with rank 1 should show at first position and so on.

Any idea how to perform this?

Note: I'm using the Views module.

4

You can achieve your requirement by following below steps.

  1. Create view of Ranking content type.
  2. Add fields you want to show to your listing.
  3. Now add sort criteria of field rank this content with selecting Ascending operation.
  • It should be there, try searching rank keyword. – Nikhil Banait Nov 20 '15 at 8:31
  • in sort criteria there are so many fields including ** "Indexed Node: rank this content"** not showing :( – user52318 Nov 20 '15 at 8:42
  • search for "rank this content". You are using views? – No Sssweat Nov 20 '15 at 8:42
  • No Sssweat @ya using views – user52318 Nov 20 '15 at 8:46
  • 1
    thanks there was problem with search api after reindexing "rank this content field"is showing – user52318 Nov 20 '15 at 8:53
1

You should indeed use the Views module as suggested in the prior answer.

However, to give ranking to content (as in your title), you could take this a step further. I.e. to automate the calculation of your "rank this content" field, by using the Radioactivity module. Some details about this module (from its project page):

... provides a field type which can be used as a hotness metric or a regular view counter for entities and for much much more. In essense, entities receiving attention (views or actions defined by Rules) are heated while inactive ones slowly cool down.

Refer to the article "Radioactivity 2: basics" for way more details / ideas about this very interesting module ...

Your Answer

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