• Resolved Zairous

    (@zairous)


    Hi,
    I was wondering if I can disable column filtering from some columns that doest have repetive data
    For example
    A large table would have 50 rows, each row containing a uniue URL
    I am looking for a way to exclude them from the column filtering

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

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Which column filtering are you refering to, here? Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter Zairous

    (@zairous)

    It is not on a production site yet unfortunately
    I am talking about the column sokrting extension that guves you option to sort data with multiple columns
    The drop down menu?

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ah, you mean the Extension from https://tablepress.org/extensions/datatables-columnfilterwidgets/ ? Yes, there is a way to exclude certain columns, using a Shortcode parameter. It’s also explained on that page 🙂

    Regards,
    Tobias

    Thread Starter Zairous

    (@zairous)

    Is there is a way to do this as a default option? Since all the tables will follow the same format (like 7xA)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, for that, you could change the line 36 of the file tablepress-datatables-column-filter-widgets.php from
    $default_atts['datatables_columnfilterwidgets_exclude_columns'] = '';
    to
    $default_atts['datatables_columnfilterwidgets_exclude_columns'] = '1,2,3';
    (where 1,2,3 is the parameter value that you want to use as the default).

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can I disable column filtering’ is closed to new replies.