• Hi,
    I want to write a plugin which will provide the publisher an “on the fly” table where already existing records are uploaded from the db and displayed and could be updated. New records can be inserted and store.
    The records will contain words from the posts so the table should be generic to all posts.
    Please provide your feedback and example regarding the best way to implement such plugin.
    BR, Elad

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    If the records contain content from posts, can you simply use the posts table as the DB source? In combination with post meta, you should be able to display a table in any way you want with any data you want. The reason is it is terribly bad design to replicate data. Then you have to be sure the two (or more?) locations are always modified together and in synch.

    Regardless how data is stored in the tables, you can present it in any way you want. Outputting a table is still basically a loop process as it is on any index or archive page. You are just formatting the output differently.

    The easiest way to make this content editable is to present it inside of form elements such as <textarea>. You can play with CSS so it looks more like a table and less like a form. Perhaps better would be to let content be in normal table cells and manage the editing with AJAX and jQuery.

Viewing 1 replies (of 1 total)
  • The topic ‘How to implement a Plugin with on-the-fly built table’ is closed to new replies.