• Resolved crowesnest

    (@crowesnest)


    I’ve been looking at the Tablepress extension Row Filtering and I see that it allows you to show only certain rows of a table by adding a filter parameter to the shortcode. I was wondering if there was a way to do it in reverse where you can hide certain rows on a page using only a shortcode parameter. I have a table that displays a particular row on one page but I don’t want that row to show on a different page.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Yes, this possible by adding another parameter to the Shortcode, which basically inverts the filter result (this is not yet documented on the Extension’s web page, which is why you didn’t find it).

    For example,
    [table id=123 filter="foo" filter_inverse=true /]
    should display all rows that don’t contain the filter word “foo”.

    Regards,
    Tobias

    Thread Starter crowesnest

    (@crowesnest)

    Excellent – Thanks once again.

    Plugin Author TobiasBg

    (@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!

    Thread Starter crowesnest

    (@crowesnest)

    Another question with regard to this. Is it possible to filter by row number or column number instead of by words?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, not with the Extension. Instead, you can just use the show_columns/hide_columns (and equivalent for rows) Shortcode parameters, see https://tablepress.org/faq/documentation-shortcode-table/

    Regards,
    Tobias

    Thread Starter crowesnest

    (@crowesnest)

    Thanks once again for the speedy reply.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, always happy to help!

    Regards,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Row Filtering’ is closed to new replies.