WordPress.org

Ready to get started?Download WordPress

Forums

TablePress
[resolved] Filter functionality (38 posts)

  1. Karol Nowak
    Member
    Posted 1 year ago #

    Hi Tobias

    Fantastic plugin!
    I'm just wondering if you'd be able to develop such a functionality as "filter" in Excell 2010, where different columns can be filtered respectively?

    Vielen Dank :)
    Karol

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Karol,

    thanks for your post.

    I'm not exactly sure what you mean by "filter" in this context. Do you have an example or screenshot, to make sure that we are on the same page?

    Do you maybe mean something like on this website: http://datatables.net/release-datatables/examples/api/multi_filter_select.html

    Regards,
    Tobias

  3. Karol Nowak
    Member
    Posted 1 year ago #

    Hi
    Yes, that's exactly what I am looking for. Menus preferably at the top.
    Now my the question would be:
    - how to implement it?
    Cheers
    Karol

  4. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Karol,

    so, you'd like http://datatables.net/extras/thirdparty/ColumnFilterWidgets/DataTables/extras/ColumnFilterWidgets/ better?

    Unfortunately, implementing this is not that trivial. I'm planning on developing "Plugin Extensions" for features like this, but that might still take some time. :-(
    Until then, it might be the best approach to not use the automatic integration of the DataTables JS library by TablePress, but to load it manually. In that approach, TablePress would deliver just the plain HTML table, without the JavaScript functionality. That would need to be added manually by doing some custom programming. Helpful resources would be http://datatables.net/blog/Getting_started_with_DataTables%3A_First_steps and maybe the WordPress HiFi plugin from http://wordpress.org/extend/plugins/hifi/ that allows to add JavaScript to specific pages/posts.

    Regards,
    Tobias

  5. Karol Nowak
    Member
    Posted 1 year ago #

    Thank You

    Appreciate your help!
    Looking forward for plugin update, and in the meantime will try to play with the code ;)

    Karol

  6. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Karol,

    that sounds like a good solution :-)

    Best wishes,
    Tobias

  7. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    I have this code ready now for TablePress :-) It is available as a TablePress Extension.
    I haven't yet found the time to add it to the TablePress website, so it's just available in the GitHub repository at https://github.com/TobiasBg/TablePress-Extensions/tree/master/tablepress-datatables-multi-filter-select
    Basically, you will need these three file, but them into a subfolder "tablepress-datatables-multi-filter-select" and install that as a regular WordPress plugin. Then, just add a new parameter to your Shortcode, i.e. change something like

    [table id=1 /]

    to

    [table id=1 datatables_multi_filter_select=true /]

    to use this feature.

    Regards,
    Tobias

  8. rvbhit
    Member
    Posted 1 year ago #

    Hi Tobias,

    Do you I need to uninstall Tablepress, put the new folder into the Tablepress folder on my server then reinstall the plugin? I tried zipping the folder you mentioned above and tried installing that as a plugin and it did not work. Am I missing a step?

  9. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    no, nothing to uninstall here! The new plugin is a separate folder, that just needs to go into "wp-content/plugins" (so that you have both "tablepress" and "tablepress-datatables-multi-filter-select" as folders in "wp-content/plugins".
    After that, just activate the new "TablePress Extension" plugin in WordPress, and add that Shortcode parameter.

    Regards,
    Tobias

  10. rvbhit
    Member
    Posted 1 year ago #

    I tried that and the plugin doesn't show up in WordPress to be activated.

  11. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    are you sure that you now have the folder "wp-content/plugins/tablepress-datatables-multi-filter-select" which has the three files "tablepress-datatables-multi-filter-select.php", "multi-filter-select.min.js", and "multi-filter-select.js" directly in it, without any other subfolders?
    After that, you will see the new plugin "TablePress Extension: Individual Column Filtering (with dropdowns)" in your WordPress Plugins list.

    Regards,
    Tobias

  12. rvbhit
    Member
    Posted 1 year ago #

    Yes sir, I even restarted my server to make sure everything loaded. Just for you to see as well: http://imgur.com/6oF3f

  13. rvbhit
    Member
    Posted 1 year ago #

    Correction, here's the link: http://imgur.com/a/zFXVe

  14. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    have you select the "All" tab at the top of the page? Just from your list of folders, the list of plugins should be much longer. Thus, this indicates, that you are currently only viewing the active plugins.

    Regards,
    Tobias

  15. rvbhit
    Member
    Posted 1 year ago #

    Nope, the all tab is selected, and I have 17 plugins activated.

  16. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    ok, at this point, it might be a good idea if I take a direct look at your site. Could you therefore please contact me by email (the address is in the main plugin file "tablepress.php").

    Regards,
    Tobias

  17. rvbhit
    Member
    Posted 1 year ago #

    I would if I could but it is being served from my company's intranet. I may just have to give up hope on this. I do appreciate all the help you have given me thus far.

  18. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    ah, ok, I see.

    Can you check again if the contents of the three files match those from the GitHub pages?

    And, do you see the deactivated plugins in that list?

    Also, are you sure that all plugins are shown on one page, or is there maybe a pagination control near the plugins list?

    Regards,
    Tobias

  19. rvbhit
    Member
    Posted 1 year ago #

    I just downloaded all three files again to a new folder. I've now moved that folder to my plugins directory. The plugin is still not showing up.

    I've cleaned up my plugins directory; I now only have 11 plugins activated and I've removed all of my deactivated plugins.

    All 11 plugins (as well as before when I had 17 activated plugins) are displayed on one page.

    Thank you so much for working with me,
    Brad

  20. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Brad,

    thanks a lot for testing all this!

    We could try a different method to install the plugin. Instead of loading it to the server manually via FTP, we could try the ZIP upload method in WordPress.
    For that, I'd like to send you a ZIP file version of the plugin that I have tested on my site, and that is working nicely. So, please contact me by email, so that I can send you the plugin.

    Tobias

  21. cajos1968
    Member
    Posted 1 year ago #

    Just a general question. Is this the way you install all other plugins? I have a hard time finding that information.

  22. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    me? I'm usually installing all plugins directly from the repository (the one click install). On my local dev machine, I sometimes also just install them by copying them to the appropriate directory (similar to the FTP method, but only in the local file system).
    For non-local sites, I use the ZIP upload mechanism for plugins that are not in the WP plugin repository.

    Regards,
    Tobias

  23. malinator
    Member
    Posted 1 year ago #

    sorry for bad english
    i have a such problem as already was written
    i can't see additional plugin at list
    but i all do right
    can you help me?

  24. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    which plugin are you talking about? Are you sure that you are seeing all plugins? Did you really copy it to the correct location?

    Regards,
    Tobias

  25. malinator
    Member
    Posted 1 year ago #

    TablePress

    despite the fact that I have created an additional folder and put this three files, I do not see it in the plug-ins as well as already mentioned
    the plugin is working and filtering do not work ...
    help please

  26. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    that's strange then... Can you maybe contact me via email (the address is in the main plugin file "tablepress.php"), so that I can take a direct look? This should be faster than have to guess.

    Regards,
    Tobias

  27. malinator
    Member
    Posted 1 year ago #

    TobiasBg, i send u mail.
    Thx.

  28. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    for everybody following this thread:

    After working with malinator, we found that the problem was that the download didn't contain the raw data, but the stuff from the Github page around it as well. This probably happened, because my instructions in the thread were ambiguous.
    To fix this, install and activate the plugin from https://github.com/downloads/TobiasBg/TablePress-Extensions/tablepress-datatables-multi-filter-select.zip instead of doing it manually.

    Regards,
    Tobias

  29. Matt317
    Member
    Posted 1 year ago #

    Hello Tobias,
    Great extension ! One more question about this (if you need an other thread, don't hesitate to tell me).

    Is it possible to use datatables-multi-filter-select with your Responsive Tables extension ?

    I would like to filter my data with dropdown menus in your responsive table, but I don't no if it's possible.

    Thanks a lot !
    Best Regards
    Matt

  30. TobiasBg
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Matt,

    thanks for your question.

    To be honest, I don't know, I haven't tried using both of these together. I can't really think of a reason why this shouldn't work, right now. Have you tried it?

    If that Multi-Filter-Select Extension does not work, you could take a look at the ColumnFilterWidgets Extension, which will add this: http://datatables.net/extras/thirdparty/ColumnFilterWidgets/DataTables/extras/ColumnFilterWidgets/
    To use that, just install and activate http://tablepress.org/download/extension/tablepress-datatables-column-filter-widgets.zip as a plugin and extend the Shortcode to

    [table id=123 datatables_columnfilterwidgets=true /]

    (and also leave the desired responsive parameter in it).

    Regards,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.