• Resolved dlongm01

    (@dlongm01)


    Hi Tobias

    I’m still experimenting with the filtering and search capabilities of your table plugin. All the extensions you provide are excellent but I can’t quite get them to support my use case. Perhaps you have some advice.

    Here’s what I want to do.

    I have a table of about 220 publications (and growing): author, year, title and a column for tags that categorise the article content. Each item in the table could have more than one tag.

    The most convenient tool for the user is the drop down filter field for the column.

    However, if there’s more than one tag in the field the filter picks up the the entire column contents and lists it as one item.

    E.g.All the cases below are treated by the filter as individual, unique tags:

    Row 1: Communities
    Row 2: Computing
    Row 3: Games-based learning
    Row 4: Professional development
    Row 5: Professional development Computing Communities
    Row 6: Ganes-based learning Communities.

    etc.

    Could there be a way of populating the filter column with each tag listed as a separate item? E.g. supposing a separator were used, the above would look like:

    Row 1: Communities
    Row 2: Computing
    Row 3: Games-based learning
    Row 4: Professional development
    Row 5: Professional development, Computing, Communities
    Row 6: Ganes-based learning, Communities.

    Then each delimited item is treated as a separate tag, and listed only once, i.e:

    Communities
    Computing
    Games-based learning
    Professional development

    The column filter is particularly useful because of course it acts hierarchically – i.e. you can filter the filtered list. (Search does not do this, but that might be another way of solving this question, i.e. retain the search list and then do a new search on that.)

    I hope this is clear enough. Your advice is appreciated.

    Thanks

    https://www.ads-software.com/plugins/tablepress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Yes, this is possible, and the ColumnFilterWidgets Extension does support a separator for this:

    [table id=123 datatables_columnfilterwidgets=true datatables_columnfilterwidgets_separator=", " /]

    `regt

    Thread Starter dlongm01

    (@dlongm01)

    Oh yes! Thanks Tobias that’s brilliant!

    I now think I’ve got what I need for my little project.

    All that’s left is to use CSS to alter the display position of the selected term. Users won’t search for a very long list of tags but with the default display layout the list quickly disappears behind the table.

    I’ll play around with that for a couple of days and get back to you when I get stuck. My ideal layout I think is to bring the category filter closer to the table and then display the list of selected search terms in a row above the filter box.

    We’ll see.

    Thanks for the new parameter! This plugin has so much in it.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘A use-case’ is closed to new replies.