Support » Plugin: TablePress » Filter cells to hide

  • Resolved LucasTolle

    (@lucastolle)


    Great Tobias Bäthge, thank you for keeping such a useful plugin in the community. You are amazing!

    I’m working on a weather project where I can fetch data from an external table (from another public governor site), real-time precipitation data. Your plugin allows me to do this very well.

    My problem is that I want to show the lines of “weather stations” that indicate that it is “raining now”.

    I wanted to use the “Row Filter” extension in reverse. That is, on the other side of the line that has 0.00 indicates that there is no rain and should be hidden. All others with any value would be displayed.

    IT IS RAINNING NOW …
    Station One | 0.00 – hidden
    Station Two | 0.35 – displaying
    Station Three | 0.00 – hidden

    How can I do this? Is there an extra extension? Is there a way to do this manually and can you tell me? I know you’re smart and that should be simple for you!

    Just one more thing:
    Is there any way to hide one or more columns from the same full table? Not all line data is interesting. Is there any way to hide other cells in this line?

    Example:
    Station Two | Station ID | Info Station | 0.35
    – what it should display was only column 1 and column 4 instead of being all row data.

    Type hook of the type [hidecol = 2 hidecol = 3]

    Grateful for the attention!

    Lucas Tolle

    • This topic was modified 3 years, 11 months ago by LucasTolle.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    For this, you can use a special Shortcode parameter:

    [table id=123 filter="0.00" filter_inverse=true /]
    

    To also hide columns 2 and 3, add this:

    [table id=123 filter="0.00" filter_inverse=true hide_columns="2,3" /]
    

    Regards,
    Tobias

    Thread Starter LucasTolle

    (@lucastolle)

    Ual, Tobias! How I’m happy about that.

    I have three other questions, but I’ll do it in another post.

    Thanks for the quick support and dedication to your plugin during all these years. I am extremely grateful 😉

    • This reply was modified 3 years, 11 months ago by LucasTolle.
    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

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

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Filter cells to hide’ is closed to new replies.