Hi,
thanks for your post, and sorry for the trouble.
That Shortcode parameter only applies to the TablePress Row Filter Extension but not to the JavaScript filtering that you get by default.
Achieving this for the DataTables JS library is not directly possible from what I know. There is one solution (using another Extension that modifies the JS code) that can add exact searching, but only for the first column of the table. So this will not help here either, I’m afraid 🙁 Sorry for not having better news.
Regards,
Tobias
Thanks Tobias for your quick answer.
It’s pitty that there is no option for that. Usually, the user know the exact value and want to find the reference in my list.
I saw that you are using DataTables 1.10.13. Is there anything new about my request in 1.10.15 ? Or should I (we) ask to DataTables developers ? (seems to be a basic function!)
Regards,
Patrick
Hi Patrick,
no, the new version 1.10.15 should not make a difference here. It does not contain a setting for that, from what I have seen.
You could of course indeed ask the DataTables developer (I recommend using the support forums on https://www.datatables.net/ ) to find out if there is an option for exact search.
Regards,
Tobias
Hi Tobias
Here is the answer of the DataTables forum : https://datatables.net/forums/discussion/comment/111600#Comment_111600
Where can I put this regex rule in the plugin (ideally by column) ?
Could it become an option for each table ?
Thanks
Patrick
Hi Patrick,
that’s the problem, there’s no direct way to use this RegEx within TablePress (as TablePress just initializes DataTables with the default options, and after that everything is done by DataTables).
To get this, the best approach would probably be to turn off the DataTables usage in TablePress and instead load and initialize it manually (i.e. by adding JavaScript code to the page). With that, TablePress would just deliver the HTML code for the table, while the rest would be your own code.
Regards,
Tobias