• Resolved voda4

    (@voda4)


    Hi there!

    I would really need some advice on how to set up the league table correctly.

    I have a problem with the fact that when the teams have the same number of points in the table, I don’t have the correct order.

    Currently, I have set criteria for sorting in the table:
    Points, goals difference, goals for, wins (but it’s probably not correct that way).

    I need the order in the table to be according to those criteria:
    Points, mutual score (kind of like a mini table between two teams), goals difference.

    In the link there is a table where you can see the team that lost the mutual match, so it is in the first place – this is wrong.

    [ redundant link removed ]

    When I removed the sorting in the table and let it be sorted only by the number of points, suddenly the order was correct.

    However, with other tables, when the points were matched, the goal scorer did not work.

    Table – https://snipboard.io/kQE3Rd.jpg
    Event 1 – https://snipboard.io/EJlZmx.jpg
    Event 2 – https://snipboard.io/tKWnEL.jpg

    My setting for league table:
    https://snipboard.io/q5aFT0.jpg
    https://snipboard.io/RhkZHY.jpg

    Can you please help me with this?`

    • This topic was modified 1 year, 11 months ago by Jan Dembowski.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi;

    If you want to rank the equal points teams with the double average rule in the points table, this rule is not available in sportpress.

    What are the top 3 color code rows on your scoreboard?
    This needs to be implemented in the scoreboard.
    Promote to league 1 (Green)
    2,3,4,5. Top league Play Off (Blue)
    Relegated to the lower league with the last 2 places (Red)`

    Thread Starter voda4

    (@voda4)

    OK, so if it’s not possible, I solved it by adding an auxiliary column “U” to the table and in case of matching points, I change the resulting order.

    Column “U” – https://snipboard.io/FpAiyo.jpg
    Table – https://snipboard.io/4dKeCT.jpg

    My color code is here:

    td.data-rank {
      align-items: center;
      align-self: center;
      display: flex;
      width: 20px !important;
      height: 20px !important;
      border-radius: 4px;
      justify-content: center;
      padding: 12px;
      border: 0px !important;
    }
    
    #post-21 .sp-template-league-table tbody tr:first-child td.data-rank {
      background: #ffd700 !important;
    }
    
    #post-21 .sp-template-league-table tbody tr:nth-child(2) td.data-rank {
      background: #c0c0c0 !important;
    }
    
    #post-21 .sp-template-league-table tbody tr:nth-child(3) td.data-rank {
      background: #cd7f32 !important;
    }

    Where #post-21 is my Home Page.

    So when I have a table where I want to highlight it on another page (place), I add another one #post-####.

    I believe it can be done in a different, better way, but this is enough for me, I don’t have much time for coding.

    Thanks for the code information and method details.

    In fact, if this code is added as colums upon creating the league table in the admin panel, color code can be given for all the rankings added to the table.
    If the League Table is like this, there will be no need to add posts in different places.

    Thread Starter voda4

    (@voda4)

    I know this, but I only need to display it like this somewhere, and elsewhere I want it without highlighting.

    Roch

    (@rochesterj)

    Hi there!

    Regarding the orders, SportsPress can only apply the ordering criteria, and then it applies the H2H ordering criteria (the same columns in the same order, but considering only events for the teams that are tied).

    As for the other issue, please kindly open a new topic, and we’d be glad to help you. It gets quite confusing if we try to fix multiple things at once.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘League table incorrect order’ is closed to new replies.