• Resolved mumboandjive

    (@mumboandjive)


    Hi Tobias,

    Firstly I just want to say thanks for all your work on TablePress, it’s been invaluable over the years!

    I have a source table containing my softball team’s stats for the last few years, formatted in the following way:

    Year | Name | At-bats
    ————————
    2013 | Player 1 | 45
    2013 | Player 2 | 35
    2013 | Total | 80
    2014 | Player 1 | 30
    2014 | Player 3 | 70
    2014 | Player 4 | 50
    2014 | Total | 150

    What I’m trying to do is have TablePress show the stats for a specific season. So for the 2013 season, for example, I’ll use the Row Filtering plugin to show only rows containing “2013”. However I’d like to have the 2013 Total row locked at the bottom of the table as a footer row, with all other rows being sortable by the visitor.

    The problem is that when I enable the footer row in the table settings, TablePress uses the last row of the table BEFORE filtering (so in the example above, the 2014 Total row) as the footer, rather than the 2013 Total row.

    I’m wondering if there’s any way to have TablePress set the footer row AFTER the table is filtered, rather than before? Or maybe there’s some other solution?

    Hope this all makes sense!

    Thanks in advance,
    Stephen.

    https://www.ads-software.com/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I can’t really think of a solution that does not involve changing the Extension’s PHP code ??

    If you want to try that, I suggest to comment out lines 165 to 167 by wrapping them in /* and */ like

    /*
    if ( $last_row_idx === $row_idx && $render_options['table_foot'] ) {
    	continue;
    }
    */

    Regards,
    Tobias

    Thread Starter mumboandjive

    (@mumboandjive)

    Thanks Tobias, that works perfectly!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with footer row when using row filtering’ is closed to new replies.