Hi,
thanks for your post, and sorry for the trouble.
Sorry, I don’t know a solution to this 🙁 I did not write the actual JavaScript code from the ColumnFilterWidgets script that adds these form fields. I only made this code available as a TablePress Extension. I’m just not familiar enough with it to know how to modify it like this. Sorry.
Regards,
Tobias
Thread Starter
click2
(@click2)
Hi Tobias,
Many thanks for your very, very, quick answer.
Just to show you an example :
http://www.10meilleurssitesderencontre.fr/
Would you say, that they simply modified the Js of the CFW script ?
Since it seems difficult to do it via CFW, any chance we could simply modify the length menu ?
So that it can filter using a qualitative criteria, instead than a quantitative criteria (lengthmenu) ?
Best regards from Berlin.
Hi,
from what I can see, they are using a totally custom filtering here, without the ColumnFilterWidgets script, and without even the DataTables JS library. (They are actually not even TablePress, but that’s unrelated to the filtering and scripts here.)
Modifying the Length Menu probably won’t help either, as that doesn’t perform any filtering, but is used for the pagination. Also, as that’s part of the DataTables JS library, we are looking at the same problem again.
So, in summary, if you want to pursue this, you’ll probably have to develop a custom solution that uses the API functions of the DataTables JS library to perform the custom filtering that you want. The code of the ColumnFilterWidgets script can probably help you get there and give you inspiration.
Regards,
Tobias
Thread Starter
click2
(@click2)
Many thanks Tobias,
Then I will try this way.
Thanks a lot for your time. I wish you a great Saturday afternoon.
Hi,
no problem, you are very welcome!
Sorry that I couldn’t provide a solution this time.
Best wishes and enjoy the rest of the weekend as well!
Tobias
P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!