Support » Plugin: SportsPress - Sports Club & League Manager » Hide irrelevant teams behind “Show All”

  • When teams are listed in the Details section of a new League Table, the “Show All” link doesn’t seem to do anything. All teams are already listed by default.

    For example, in this League Table, the selection is set to Manual but the Competition is set as Division 1. Tournament Teams are not in Division 1, yet they appear without pressing ‘Show All’.

    https://imgur.com/puvqVcl

    My thinking would be all teams that aren’t in Division 1 should be hidden behind the ‘Show All’ link. That is how the Player List setup works. Don’t see why League Table should be any different.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Roch

    (@rochesterj)

    Hi!

    Thanks for reaching out!

    Do you have an example of this issue? Since it’s a very specific case it’s hard for us to understand with just that screenshot.

    Thanks!

    Kind Regards,
    -Roch

    Thread Starter ChaosZero112

    (@chaoszero112)

    Hi Roch,

    Apologies for the delay. Here might be a better pic to explain:

    https://imgur.com/a/FJZSl

    The “Show all” link doesn’t do anything on manual League Table entries because it is always showing all teams, ignoring the filtering rules set by Competition and Season.

    Hopefully that makes more sense.

    Plugin Contributor Roch

    (@rochesterj)

    Hi!

    I see what you mean now.

    That would be a very heavy query to make actually, as the relationship between teams, competitions and seasons is very weak (each team can have unlimited competitions and each competition can have unlimited teams).

    That’s a great idea, but would probably affect your wp-admin performance a lot. THat is still doable though, but would require a lot of custom code to achieve.

    Thanks!

    Kind Regards,
    -Roch

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide irrelevant teams behind “Show All”’ is closed to new replies.