Support » Plugin: TablePress » Enhanced search options ??

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

    (@tobiasbg)

    Hi,

    thanks for your question. Great to hear that you like TablePress so much! πŸ™‚ (Don’t forget to rate it here in the plugin directory then. Thanks!)

    Regarding your question:
    Well, this should be possible, but I don’t really have a readily usable solution. The search/filter and sorting functionality is coming from the DataTables JavaScript library (see http://www.datatables.net) that TablePress uses. That library does have an extensive API, so that it is possible to develop and program custom search/filter behavior in JavaScript. Unfortunately, I don’t really have experience with this, so I can’t really help with this πŸ™

    One thing that I can offer is the functionality that you can see here:
    http://datatables.net/extras/thirdparty/ColumnFilterWidgets/DataTables/extras/ColumnFilterWidgets/
    There’s a drop down box for each column that allows to quickly filter certain values.
    I have packaged the JavaScript code that is necessary for this into a “TablePress Extension” (see http://tablepress.org/extensions/ for the concept behind this). To get that functionality, just install and activate http://tablepress.org/download/extension/tablepress-datatables-column-filter-widgets.zip as a regular WordPress plugin.

    For each table that shall get this, then change the Shortcode in the page from something like

    [table id=123 /]

    to

    [table id=123 datatables_columnfilterwidgets=true /]

    Regards,
    Tobias

    Hi Tobias,

    Thanks so much for your super fast reply!! I gave your suggestion a try … and it seems to look great. I’ll see if my client is happy with it like that. Thanks again!!
    Ro πŸ™‚

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    sure, no problem! Great to hear that this will help!

    For your table, it will probably make sense to not show a dropdown for the contents of the first column, as the name will likely be unique anyway. I therefore suggest to change your Shortcode once more, to

    [table id=1 datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=1 /]

    Regards,
    Tobias

    Great idea! I just tried adding in the new shortcode, but it didn’t affect the 1st column. Please confirm the shortcode.

    Thanks again!!!! πŸ™‚

    Also Tobias … is it at all possible to use the term ‘COUPONS’ instead of ‘ENTRIES’ in the footer of the table? Where would I go to change that?

    You are awesome!!!

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, the Shortcode is correct. Did you really add

    datatables_columnfilterwidgets_exclude_columns=1

    ?

    About changing “entries” to “coupons”: That’s possible with another TablePress Extension. Please see http://tablepress.org/extensions/change-datatables-strings/ for more information.

    Regards,
    Tobias

    Hello Tobias,
    Thanks for your great plugin! I’am exactly on the same thing to add more search options to the table. With the dropdwon menu, this would be fantastic! I will try it with the shortcode and the extensions you provided.

    Another input: maybe other people don’t like, but I would even pay for this plug-in with all the extensions inluded. Youl could sell it through codecanyon by themeforest.

    Autoimporter

    Danke vielmals fΓΌr dein super plugin!
    GrΓΌsse, Luigi

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Luigi,

    thanks for your feedback! Great to hear that you like the plugin and the dropdown extension!

    About your suggestion: Currently, I have no intention to make the plugin commercial (and certainly not through a site like CodeCanyon, as there’s some trouble going on right now with the company behind it and their understanding of the spirit of open source software). I see TablePress as my way of giving back to the WordPress community. (I do however appreciate donations to support my work, so feel free πŸ™‚ )

    Best wishes,
    Tobias

    Hi Tobias,

    have done the donation πŸ˜‰ I do understand that free thing. But I am working now as a newbee already for more than one year with wordpress and when you want that a plugin is supported and the author has an incentive I prefer much more to pay a small amount than to have a free plugin .

    All my themes, expcept one from woo, I have from themeforest. There is no other option.

    Will try to know exclude some coulmns in the short code you provided. Will give you fast feedback.

    Best, Luigi

    Hi Tobias,

    just a feedback: to exclude a column is not working, see my shortcode below. Would be great to have this!!!

    [table id=5 datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns=1 /]

    Best, Luigi

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Luigi,

    ok, thanks for testing this! As two people have now reported that the parameter is not working, I’ll take another look at the code and report back shortly.

    Regards,
    Tobias

    Hi Tobias,

    Thank you so much! Have a nice weekend.

    Regards, Luigi

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    Luigi, thanks for your donation, I really appreciate it! And I can understand your point about support for plugins. For me, all of this is just a hobby though, and I’m not a professional developer. So, charging doesn’t really feel right, and it would put me under a lot more pressure. I’ll stick with the free/donation way for now πŸ™‚

    Now, back to the ColumnFilterWidgets: I checked the code again, and there was indeed a small problem that showed itself as an edge case bug, only when the excluded column is “1”. All other columns and combinations (like “1,2,3”) worked fine.

    I fixed this bug and also took that opportunity to make the Extension compatible with the upcoming new version 0.9-RC of TablePress.
    So, to use the fixed version, please first install the latest TablePress development version from http://downloads.wordpress.org/plugin/tablepress.zip (just replace the existing “tablepress” folder on your server with the one from the ZIP archive).
    Then, also replace the Extension with a fresh download from http://tablepress.org/download/extension/tablepress-datatables-column-filter-widgets.zip
    After that, the Shortcode should work as intended, and the first column should be excluded.

    Regards and have a nice weekend, too!
    Tobias

    Hello Tobias

    Works perfectly! Thank you again very much for the work and hours you have already devoted to this project!

    Hope you had a nice weekend, w/o coding πŸ˜‰

    Best,

    Luigi

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Luigi,

    awesome! Great to hear that this worked! Thanks for the confirmation!

    And no, of course I did some coding over the weekend, as I finally released version 0.9-RC of TablePress πŸ™‚

    Best wishes,
    Tobias

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Enhanced search options ??’ is closed to new replies.