WordPress.org

Forums

TablePress
[resolved] Filter only on some columns (10 posts)

  1. Guillaume
    Member
    Posted 2 years ago #

    Hello !

    I really like the filter tools, but some column do not need to have this filter.

    How can I have only some column with the option ?

    Thanks !

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

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    thanks for your post.

    Are you refering to the "DataTables ColumnFilterWidgets" Extension?
    And can you please post a link to the page with your table, and tell me which columns don't need the filter?
    I should then be able to tell you the necessary code to achieve this.

    Regards,
    Tobias

  3. Guillaume
    Member
    Posted 2 years ago #

    Hello,

    I use the plugin in French so maybe I do not have the right term....

    On top of each column, there is small arrows to classify the column by...

    Thanks !

  4. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    those are sort arrows. So, you actually want to turn of sorting on some columns?

    Can you please post a link to the page with the table, and tell me which columns you don't want to have sortable?

    Regards,
    Tobias

  5. Guillaume
    Member
    Posted 2 years ago #

    Sure ! What is your e-mail ?

    ( Website is currently private, under construction)

  6. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    ah, ok. Then yes, please send me an email. The address is in the main plugin file "tablepress.php".

    Regards,
    Tobias

  7. Guillaume
    Member
    Posted 2 years ago #

    E_mail sent ! :)

  8. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    great! Thanks! I have made the necessary changes. Basically, you just need this extra code in the "Custom Commands" textfield:

    "aoColumnDefs": [ { "bSortable": false, "aTargets": [ 3, 4, 5, 6, 7 ] } ]

    Best wishes,
    Tobias

    P.S.: In case you haven't, please rate TablePress here in the plugin directory. Thanks!

  9. Guillaume
    Member
    Posted 2 years ago #

    THANK YOU SO MUCH !!! :)

  10. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    no problem, you are very welcome! :-)

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags