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
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 http://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 http://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
Tobias, thanks for this possible solution and I will def. try it.
Enjoy your weekend!
Linda
Hi Linda,
you are very welcome! Let me know how things go!
A nice weekend to you, too!
Tobias
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:
http://ccl.rutgers.edu/index.php/ictcore/search-tools/
Thanks again,
Linda
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
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
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
Well, looks like we owe you another espresso…
Thanks so much Tobias!
Hi Linda,
great to hear that this helps!
And thanks a lot for that coffee, I really appreciate it! 🙂
Best wishes,
Tobias