Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter LindaEve

    (@lindaeve)

    Never mind the first question because I found the short code and got that working.

    Still trying to see if the second question is doable.

    Thanks!
    Linda

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Linda,

    thanks for your questions! Good to hear that you were already able to solve the first one!

    For that second question: I do have a quite new solution for this, but it’s not that nice (in terms of flexibility and configuration) yet, so I can not guarantee that it will be useful.
    Please download and install the Extension from https://tablepress.org/extensions/datatables-inverted-filter/

    To use it, you will have the edit the contained PHP file: Line 22 contains an array of the page names (called “slugs”, which is the last part in the page’s URL, e.g. comptox in https://ccl.rutgers.edu/index.php/ictcore/comptox/ ), so you’ll have to adjust that.
    Then, this “inverted filter” function will be turned on for all tables on the page that use the filtering (i.e. there’s no per-table activation possible, but only a per-page activation).

    Regards,
    Tobias

    Thread Starter LindaEve

    (@lindaeve)

    Tobias, thanks for this possible solution and I will def. try it.

    Enjoy your weekend!

    Linda

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Linda,

    you are very welcome! Let me know how things go!

    A nice weekend to you, too!
    Tobias

    Thread Starter LindaEve

    (@lindaeve)

    Tobias, thanks – just tried this and it works very well. It’s not pretty, but it does what I need! If you want to see the page it’s here:
    https://ccl.rutgers.edu/index.php/ictcore/search-tools/

    Thanks again,
    Linda

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Linda,

    yes, it would be nicer to hide the head row as well. Is that what you mean?
    Let me see if I can find a solution for that.

    Regards,
    Tobias

    Thread Starter LindaEve

    (@lindaeve)

    Yeah, if I could have nothing but the search box it would be just about perfect (no head row, no “No matching records found”).

    Thanks!
    Linda

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Linda,

    I’ve now added some code to the Extension that will hide the table (i.e. the head row and the “No matching records found.” text), if the search field is empty.

    To use that, just download a fresh copy from the link above and re-install it (with the necessary modifications to that array).

    Regards,
    Tobias

    Thread Starter LindaEve

    (@lindaeve)

    Well, looks like we owe you another espresso…

    Thanks so much Tobias!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Linda,

    great to hear that this helps!
    And thanks a lot for that coffee, I really appreciate it! ??

    Best wishes,
    Tobias

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Search function questions’ is closed to new replies.