Support » Plugin: WP-Table Reloaded » [Plugin: WP-Table Reloaded] pre-populate the search box

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no, that is not easily possible, as far as I know from the DataTables library’s website.

    Instead, you might be interested in the Filtering Extension from my website at http://tobias.baethge.com/2010/03/extension-6-showing-only-rows-that-match-a-filter/ which allow you to only show those rows of a table that contain a certain filter word in one of their columns.

    Regards,
    Tobias

    Hello Tobias,

    Thank you for your quick response

    Regards
    Gérard

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Gérard,

    no problem, you are very welcome!
    I hope the Filtering Extension helps 🙂

    Best wishes,
    Tobias

    Hi Tobias,

    Your filtering extension sounds exactly what I need, but I can’t get it to work on my site. I’ve already tried changing the theme and turning off other plugins, but it just won’t work. I can also confirm that my theme has wp_footer(); in the footer.php file.

    If I include [table id=1 filter=”” /] my entire table appears, but if I include [table id=1 filter=”bt” /] (or anything else in the filter) it doesn’t show.

    Do you have any ideas for how to fix this?

    For info, what I’m trying to achieve is this…

    I have a table of broadband providers on my site at http://www.maccode.co.uk/the-best-broadband-deals/ . However, I want to create additional provider specific pages that only show deals from that provider without having to duplicate the table.

    For example, if you type BT info my search box, only BT deals show in the table. This is what I’d like to happen on the BT provider page, using the same primary table, but with only the BT deals showing.

    Please let me know if you think you can help.

    Thanks, Stuart.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Stuart,

    don’t forget that the “Filtering Extension” will only do exact cell matching! That means that with the search term “bt”, it won’t find cell with (as you have now) “BT Broadband and Evening & Weekend Calls”.

    To work around this problem, you could add a new column to your table that you hide with the “Hide” button feature. In that column, for each row, enter a short version of the name, like “bt”, “virgin”, “sky”, and so on. You can then use these exact words as the search terms for the filtering extension.

    Regards,
    Tobias

    Hi Tobias,

    Thanks for your help with this – I didn’t realise it was an exact match on a cell by cell basis. Thanks for clarifying.

    And thanks for your suggestion about the hidden column. That should work perfectly.

    Thanks again,

    Stuart.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, no problem, you are very welcome!

    Best wishes,
    Tobias

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP-Table Reloaded] pre-populate the search box’ is closed to new replies.