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

    (@tobiasbg)

    Hi,

    thanks for the question.

    Unfortunately, I’m not really aware of a readily usable solution to this, sorry ??
    Your best chance should be some custom programming using the DataTables JS library (which TablePress uses for the sorting and filtering functionality). That library has an extensive API (see https://www.datatables.net) that you could use to write some custom JavaScript code to achieve what you want.
    Unfortunately, I’ve never really worked with this before, so I can’t help with that ??

    Regards,
    Tobias

    Thread Starter Fowzan

    (@rockyyy)

    i was thinking of some work arounds for this situation. heres what i thought of
    1. i can simply create a new column “imp” with 2 entries “yes” “no”
    sorting with yes will get all the imp entries
    2. or i can simply add *** to one of the cells on the imp row. searching for *** would get the important entries

    can you find a simple manual solution like this which is easy to implement. i dont want to manually edit that much of data

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, adding a new column with some kind of keyword for the important rows would be a good start. The best keyword might even be “important”, so that you know what it is used for. You’ll have to manually add this to the respective rows though, with copy and paste. There’s not automatic solution for adding that keyword, as only you know which rows are important.

    The JavaScript code could then use the “important” keyword in the new column to show all of those rows, and hide all the others. But that requires custom JS code for DataTables, which I can not help with, as I don’t have experience with such direct API programming ??

    That new column with the “important” keyword could however also be used by the TablePress Row Filter Extension from https://tablepress.org/extensions/row-filter/ with which you can then basically create two Shortcodes: One for the full version, and one for the table with just the “important” rows.

    Regards,
    Tobias

    Thread Starter Fowzan

    (@rockyyy)

    thanks for the support. i will go for the first option. adding a new column. searching for the word important in the live search box provided would filter the important rows. i dont think there will be any need for custom JS code.
    if in future you find any good solution for this please post here so that i can get to know

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem! Good to hear that the first option will work for you! ??
    And of course I’ll post here if I happen to find a better solution!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘any way to filter important rows’ is closed to new replies.