Hi,
thanks for your question, and sorry for the trouble.
Sorry, I’m not aware of a direct solution for this. You could maybe try the TablePress Button Filter Extension from https://tablepress.org/extensions/datatables-button-filter/ here, and modify it so that it looks like what you want to achieve. Note that you will have to manually set those “Suggested keywords”.
Regards,
Tobias
Okay i’ll give that a try. How does the button get searched? http://shirts.firebirdink.com/1317-2/ I click it but nothing happens
I have this for the code:
<button class=”table-1-filter” data-filterterm=”red”>Red</button>
[table id=1 datatables_button_filter=true /]
Hi,
ah, the Extension requires a newer version of TablePress.
Please update to WordPress 4.2.1 and then to TablePress 1.6.
Regards,
Tobias
that did it, but now that I updated it can low long search the images.
example: I’ve started to change the word RED to a swatch red named red.png
I used to be able to search red and have the swatch appear but now it wont
Hi,
good to hear that this helped!
The reaon why red is no longer found is due to a switch in how the DataTables JS lirbary’s type detection works. The column with the colors is now filtered as HTML code, which is removed before the filtering.
To change that, you could try adding this to the “Custom Commands” textfield on the “Edit” screen of the table:
"columnDefs": [ { "type": "string", "targets": [ 2 ] } ]
This will set the type of that column to regular strings (the 2 indicates the third column, as counting starts with 0 in the code).
Regards,
Tobias
YES!!! Thats it!
Thank you for your help
Hi,
no problem, you are very welcome! 🙂 Good to hear that this helped!
Best wishes,
Tobias