• Resolved cj1490

    (@cj1490)


    Hello! I am a new user of TablePress and I just want to ask if I can somehow edit something to make the search text field reveal hidden columns?

    The thing is this. I have a table that will have about 200+ columns. These columns are people details (name, phone #) and the rest of the columns are Magic The Gathering Card names. The data they hold are numbers (or quantities for the said card). These 200+ columns of cards are hidden by custom CSS.

    The behavior I am aiming for is, I type in a card name (card 1), the column for that card name will be revealed showing the quantities it holds. If the cell under (card 1) has an empty value, that row will not be shown together with the people details.

    Is this doable somewhere? I don’t know where to start editing the javascript.

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

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

    (@tobiasbg)

    Hi,

    thanks for your question.

    Unfortunately, I have no real clue where to start with this either ?? This is indeed some very advanced stuff, and the best idea might be to somehow use the API functions of the DataTables JavaScript library from https://www.datatables.net in some custom programming.
    This will likely mean to extend the code (not necessarily to edit the existing JS code), but unfortunately, I have no real idea where to start with this. You might want to experiment with loading/initializing DataTables on a static table (outside of WordPress), and get everything to work there.

    Regards,
    Tobias

    Thread Starter cj1490

    (@cj1490)

    Where can I find the search textfield codes though? Is it in js/datatables?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, all of that is in the DataTables JS code. But you should not really modify that, as you will lose the possibility to update the file/plugin.
    Instead, you should alter/extend the current behavior with the API functions, that are described in the DataTables documenation on https://www.datatables.net.

    Regards,
    Tobias

    Thread Starter cj1490

    (@cj1490)

    ok thanks ??

    Additional question that is completely unrelated to my previous one. I can’t seem to make the Import from URL work.

    I am pasting the URL taken from the Download button of a file in my dropbox can this be done? It’s a CSV file that can be downloaded in my dropbox account.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem!

    I’ll answer the second question in the other thread where you posted this.

    Regards,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Additional Search Functionality?’ is closed to new replies.