Multiple ranking for same CMS item

I’ve created hospital site with doctor CMS collection, currently each doctor has two type of ranking:

  1. Overall ranking for all doctor page (Best Gynecologists, Pediatricians, Maternity Specialists Near Me | Cloudnine Hospitals)
  2. Unit based ranking for different location pages (Best Maternity/Pregnancy Hospital in Electronic city for Normal Delivery | Gynecology, Pediatric/Child Clinic/Centers Near Me | Best Maternity/Gynecology Hospital in Doddathoguru, Electronic City Phase 1, Bommasadra | Consult Online Doctor 24/7 | Cloudnine Hospitals)

So we have created two differen ranking in the CMS and short the ranking based on them.

Now there are cases where same doctor comes on different location and ranking are different for each location.

How do I solve this problem?

Please help!!!


Here is my public share link: LINK
(how to access public share link)

Usually I just go for the overall sorting, and use that everywhere, so each doctor record gets a Position field I number them 10 20 30, etc, and that will be used everywhere the team is listed. This works 99% of the time.

If you need different per-unit ranking, the easiest way is to reverse your ref connection. I’m guessing you have a multiref from Doctor to Unit? You’d rebuild that as a multiref from Unit to Doctor.

This way;

  • Each unit knows what doctors work there
  • And exactly what order they should be presented in
  • The doctors page can also drop a collection list to Units, filtered to “where doctors includes this doctor”, to get the unit list and avoid duplicate data admin.

You’ll probably want a sort order on your Units as well, so that the bigger units are sorted first- or else just go with alphabetic.