• Resolved jimrossdev

    (@jimrossdev)


    Hi

    Love your plugin.

    Trying to sort the a particular column to find a particular value/pair. Once I can find it, I want to change the colour or something. But, I cant seem to find the documentation to do such an action.
    Is the best practice to use the JSON file? (How do I find access to that?)

    Or use your nifty table plugin?

    Any direction would be great!

    Jim

    The page I need help with: [log in to see the link]

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.

    I’m not sure that I understand. Where exactly do you want to highlight something? And who is going to do this? You, once, or some visitor when they view the table? What JSON file are you referring to here?

    Regards,
    Tobias

    Thread Starter jimrossdev

    (@jimrossdev)

    Hi Tobias

    Thanks for answering my question.

    I should clarify. On each of the entries in my table, the values change due to the formula I made. I want to locate a particular value/pair on a particular column. but the place of that value/pair will change each time I make a new entry. So, have you made a filter so that I can find a particular value on a particular column or row? If not, then where can I access the JSON file?
    In short, Im looking to find the number one ranked album. It changes after each entry.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    the TablePress Row Filter Extension from https://tablepress.org/extensions/row-filter/ can be used to find rows by keyword, but that won’t really help with formula results.
    I can therefore only imagine a JavaScript-based solution. You could e.g. set the pagination to 1 on the table’s “Edit” screen and add this to the “Custom Commands” text field to trigger a sort of your ranking column:

    "order": [ [ 2, "desc" ] ]
    

    This would sort by the third column (counting starts with 0) when the page is loaded.

    As for the JSON file: TablePress does use JSON, but that’s stored in the database (in the wp_posts database table). This won’t really help here, I believe, as the formulas are not yet calculated in the database.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Sorting a column for a value’ is closed to new replies.