Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    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

    Thread Starter Nick Sarro

    (@nicksarr1)

    Okay i’ll give that a try. How does the button get searched? https://shirts.firebirdink.com/1317-2/ I click it but nothing happens

    Thread Starter Nick Sarro

    (@nicksarr1)

    I have this for the code:

    <button class=”table-1-filter” data-filterterm=”red”>Red</button>
    [table id=1 datatables_button_filter=true /]

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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

    Thread Starter Nick Sarro

    (@nicksarr1)

    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

    Plugin Author Tobias B?thge

    (@tobiasbg)

    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

    Thread Starter Nick Sarro

    (@nicksarr1)

    YES!!! Thats it!
    Thank you for your help

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Suggested Keywords?’ is closed to new replies.