• Resolved flaviese

    (@flaviese)


    Hi, is there a way to hide the table “on load” and view it after doing a filtered search? Thankyou
    Flavio

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

    (@tobiasbg)

    Hi,

    thanks for your question.

    This could be possible with this TablePress Extension: https://tablepress.org/extensions/datatables-inverted-filter/
    However, using that is a little bit more complicated than for other extensions. First, install and activate it like a regular WordPress plugin. Then, you’ll need to modify the PHP file of the Extension. In line 22, the array needs to be filled with the slugs of all pages that you want to use this function on. The “slug” is the last part of the URL of a page.

    Regards,
    Tobias

    Thread Starter flaviese

    (@flaviese)

    ok, great, thankyou. So I should consider this modifies in case of future plugin’s updates, rewriting that piece of code, isn’t it? Or it may be possible to do it via functions.php in child theme overriding a function?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    this is a modification in the Extension, which doesn’t get automatic updates (because it’s not in the WordPres plugin repository). So, it’s rather safe to do there.

    Regards,
    Tobias

    Thread Starter flaviese

    (@flaviese)

    Hi, I am working on it. Following your suggestions, I added slugs on tablepress-datatables-inverted-filter.php function.

    It works, but only when typing a keyword on search field. I need to usi it only “on load” and using one off all the available filters.

    Probably it should be better in this case to load the table, hide it on load, and enable definitively ofter the user input on blur or change event in filter’s table.

    Look at this example, at the end of the page. Table is shown only after typing in search field.

    https://www.tafersnc.com/magazzino/

    Flavio

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I don’t really understand what you mean then. When do you want to show the table?

    Regards,
    Tobias

    Thread Starter flaviese

    (@flaviese)

    When selecting something on one of the two select

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, ok. Now I understand. Unfortunately, I don’t know how to achieve that. Sorry ??

    Regards,
    Tobias

    Thread Starter flaviese

    (@flaviese)

    Don’t worry, I fixed it via jquery ??

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    great! Good to hear that you found a solution!

    Best wishes,
    Tobias

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

    Thread Starter flaviese

    (@flaviese)

    Sure, I will do, thankyou.
    Flavio

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks! I really appreciate it!

    Best wishes,
    Tobias

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘hide table view on load event’ is closed to new replies.