Reordering Columns in Schedule Tables

Shoal Summit Solutions Forums MSTW League Manager Plugin (& Add-ons) Reordering Columns in Schedule Tables

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7203
    Owen Gotimer
    Participant

      Schedule Table

      We are working on our schedule table and attempting to re-order the columns. Our ideal order would be DATE, TIME, AWAY TEAM, RESULT, HOME TEAM.

      Is is possible to have a TIME and RESULT column separate of each other? Not a big deal if not but just checking.

      If that is not possible, we would like the order of columns to be DATE, AWAY TEAM, TIME/RESULT, HOME TEAM or DATE, AWAY TEAM, HOME TEAM, TIME/RESULT as our visitors are used to the Away team coming before the Home team. We can make that happen by using show_meets=1 but we prefer having 2 separate columns for the AWAY TEAM and HOME TEAM.

      We have the column orders set correctly in settings (DATE = 1, TIME/RESULT = 3, HOME TEAM = 4, AWAY TEAM = 2), but the frontend display is not showing as we have set the columns, but instead showing as DATE, HOME TEAM, AWAY TEAM, TIME/RESULT.

      Is what we’re asking possible?

      URL: https://stg.locosports.info/schedules/boys-basketball-schedule/
      Shortcode: [mstw_league_schedule_table league="boys-basketball" season=2023 show_nonleague=1 show_meets=0 date_format='D n/j' time_format='g:i A']

      Website Information
      ———————–
      LoCoSports is a hyperlocal news site covering high school sports. We have 17 base high schools track schedules for 323 teams and standings for 187 total teams

      URL: stg.locosports.info
      WordPress: 6.4.1
      PHP: 8.0
      Theme: SmartMag 9.3.0
      League Manger: 2.10
      League Manager Addons: 2.10

      #7215
      Mark
      Keymaster

        Owen,
        Regarding Time/Result: Why would you need to show the time after the game has ended? It’s too late, you missed the game. Several shortcodes allow you to show scores of games in progress. BTW, it seems no one really uses that.

        Regarding column order: IDK, order has always worked modulo some constraints dictated on the settings page. Home and Away are reversed on a table here – https://dev.shoalsummitsolutions.com/lm-schedule-tables/.

        I’ll try to run a complete test on my dev site tomorrow. Maybe I introduced a but when the ‘meets’ capability got introduced.

        -Mark

        #7220
        Owen Gotimer
        Participant

          Thanks Mark. You are correct on the time/result. Previously, we would hide the time column on mobile devices (to make the schedule tables more mobile-friendly) even before the game, so having the two columns made sense, but I do think having them as one column makes sense.

          As far as column order, the example you provided has DATE, HOME, VISITOR, TIME/SCORE, LOCATION much like ours. However, we can’t order the columns to operate as DATE, VISITOR, TIME/SCORE, HOME, LOCATION. Basically, we want to have VISITOR before HOME, because our audience is used to the Home team/venue being after the Away team.

          When I disable the LMAO plugin, the schedule table does reorder to DATE, VISITOR, TIME/SCORE, HOME as I have dictated in the columns order on the Schedule Tables dashboard, but as soon as I reactive the LMAO plugin, the frontend re-orders back to DATE, HOME, VISITOR, TIME/SCORE, so I do think there might be a bug introduced through the ‘meets’ capability.

          -OG

          #7221
          Mark
          Keymaster

            Thanks for the info. Probably a bug. I’m going to look into it today.

            #7224
            Mark
            Keymaster

              Upon further review, there would appear to be a bug in MSTW League Manager plugin when the MSTW League Manager Add-ons plugin is active. AS A WORKAROUND while I’m looking at a patch, perhaps you could try the alternative shortcode mstw_league_schedule_2. It appears to be functioning correctly in this regard.
              -Mark

              #7225
              Owen Gotimer
              Participant

                Hi Mark,

                The mstw_league_schedule_2 did the trick for our current needs. I appreciate you looking into this for us.

                -OG

                #7226
                Mark
                Keymaster

                  Great! You may want to look at exactly else the [mstw_league_schedule_2] actually does. (I can’t recall at the moment, but I’m sure it’s really good. LOL)
                  -M

                Viewing 7 posts - 1 through 7 (of 7 total)
                • You must be logged in to reply to this topic.