Forums

WP-Table Reloaded
Auto update table fields from modified CSV (4 posts)

  1. Paul_B
    Member
    Posted 1 year ago #

    Hi there,

    Thanks for this amazing plugin. So far i have been able to do everthing I wanted, however would like to know if this is possible.

    At present, I am displaying a parts list imported from a CSV file (hosted on my server).

    This CSV file gets data added to it quite regulary. Is there a way that when i update the CSV file on my server (overwrite the file) the WP reloaded table will also update?

    Many thanks

    Paul

  2. TobiasBg
    Member
    Posted 1 year ago #

    Hi,

    no, that is not possible. The plugin does no offer to automatically re-import a file.

    You might want to think about developing a custom solution for your file, i.e. a custom plugin that reads your CSV file and displays it as a table.

    Best wishes,
    Tobias

  3. funniezatee
    Member
    Posted 1 year ago #

    Hi,

    I know this is an old thread. But regarding the same issue, is it possible for you to give some heads up on how to interpret your data in the sql table entry?

    This is so that I can create my own custom solution file to auto update,
    as it would be a very useful feature for me.

    Brian

  4. TobiasBg
    Member
    Posted 1 year ago #

    Hi Brian,

    the data in the WordPress Options table is a so-called serialized string. This means, that through a PHP function, a multi-dimensional array (the table data and its options) are transformed into a string, which can be stored in a single database field.
    The relevant PHP functions are "serialize()" and "unserialize()". To fully understand how this is done, I suggest that you take a look into the saving mechanism of a table, which you can find in the "controller-admin.php" file.

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic