• Resolved manishmiscellenaous87

    (@manishmiscellenaous87)


    Hi Everyone!

    I want to import around 250 tables but on uploading through a zip file the Table ids are created automatically.

    Is there a way that the Table ids created are the filenames of the csv file.

    Thanks
    Manish

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

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Unfortunately, this is not directly possible — unless you use the TablePress JSON format as the import format. There, you could define the desired table ID.

    Regards,
    Tobias

    Thread Starter manishmiscellenaous87

    (@manishmiscellenaous87)

    Hi

    Thank you for the reply.

    I search JSON format from another post.

    [[“row 1, col 1″,”row 1, col 2″,”row 1, col 3″,”row 1, col 4”],[“row 2, col 1″,”row 2, col 2″,”row 2, col 3″,”row 2, col 4”],[“row 3, col 1″,”row 3, col 2″,”row 3, col 3″,”row 3, col 4”]]

    Please let me know how do i add the table id.

    Also, is there an easy way to convert .csv to JSON format.

    Thanks
    Manish

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    this is basically the “minimum” JSON format, with just the table data. To see an example of the full data format, I suggest to simply export one of your TablePress tables (you could create an empty one, if you don’t yet have one) to the JSON format. You can then see the format in a text editor.

    Unfortunately, I don’t know a way to directly convert from CSV to JSON, sorry. Your best chance is a custom script/program.

    Regards,
    Tobias

    Thread Starter manishmiscellenaous87

    (@manishmiscellenaous87)

    Hi

    Thank you for the reply. Will surely try.

    Best wishes.

    Regards
    Manish

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem! I hope it helps!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Creating custom Table ids’ is closed to new replies.