• Resolved Shane.C

    (@shanec-1)


    Hi Tobias,

    I have a table containing information about cars, bicycles, boats and trains. I would like the user to be able to pre-select (pre-filter) which type(s) of information is to be displayed in the table e.g.
    – only boats or
    – cars and trains (i.e. multi-select)

    without displaying the [transportation_type] field in the table. I would also like to user to be able to further pre-filter by the [original_market_region] field (again without displaying it) e.g.
    – only Asia or
    – Middle East and South America (again multi-select)

    Is this functionality possible with any of the TablePress extensions? I have looked through them and can’t find one that would fit.

    Thanks,
    Shane

    https://wordpress.org/plugins/tablepress/

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    The best solution that I can think of here would be to use the TablePress ColumnFilterWidgets Extension from http://tablepress.org/extensions/datatables-columnfilterwidgets/
    With that, you would get drop downs to select from (it is possible to select multiple values).

    You could hide the two columns that you don’t want to show ([transportation_type] and [original_market_region]) with a “Custom Command” (on the “Edit” screen of the table) like

    "columnDefs": [ { "visible": false, "targets": [ 0, 3 ] } ]

    (The 0 and 3 would result in the first and fourth column being hidden, as counting starts with 0 in the code.)

    Regards,
    Tobias

    Thread Starter Shane.C

    (@shanec-1)

    Hi Tobias,

    I tried to install the extension but got the following messages:

    Installing Plugin from uploaded file: tablepress-datatables-column-filter-widgets.zip

    Unpacking the package…
    Installing the plugin…
    The package could not be installed. No valid plugins were found.
    Plugin install failed.
    Return to Plugins page

    Any ideas? (TablePress is installed)

    Thanks,
    Shane

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Shane,

    that sounds weird, and I can’t reproduce this. It might be possible that the downloaded ZIP file was corrupt somehow. Can you maybe try again with a fresh download.
    Otherwise, can you try a manual installation via FTP?

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pre-filtering (via checkboxes/multi-select lists)’ is closed to new replies.