• Resolved jpr105

    (@jpr105)


    Good evening TobiasBg (@tobiasbg),

    Finally I think I found the plugin I was looking for for a long time!

    If you don’t mind I’ll explain my needs:

    – I use the “Woody snippets” plugin to query, in PHP, a MongoDB database and display the result thanks to the HTML <table> instructions (echo ” <td> … </td>).
    – It works fine but I would like to outsource the formatting task of my query results and your plugin seems to meet my needs pretty well.

    I can modify my queries to generate CSV instead of generating the Echo command. This is not a problem.

    The must would be that your tables are automatically populated from my queries when the page is displayed.

    What do you think, isn’t it utopian?

    Thank you for your answer

    Sincerely – Jean-Paul

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    If you are already using PHP code to render a table, why don’t you simply use the TablePress Render class in PHP? That should be the most reliable way here.
    Alternatively, you could use the available plugin filter hooks to override the data of a dummy table with that from your DB query.

    Regards,
    Tobias

    Thread Starter jpr105

    (@jpr105)

    Thank you for your quick response.

    So you think it will be possible with TablePress and its add-ons.

    OK I will go deeper and test your tool.

    Thanks

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, but it will require custom coding, with integrating your data source as a replacement to TablePress own. The “reading” part (getting your data and rendering a table) should be fine. The required changes for making it possible to use TablePress as a the editing interface for your data source would be more extensive (but that’s not what you need from what I understand).

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatically populate your tables’ is closed to new replies.