Support » Plugin: TablePress - Tables in WordPress made easy » Adding footer line to Exports

  • Resolved marcsix

    (@marcsix)


    Hello all,

    I work at a government body and am looking to utilize Tablepress with an existing wordpress site we have. Our intention is to provide the population we govern statistical data that they can download easily for their own uses.

    The export functionality and tablepress features in general are very polished and provide a great user experience.

    One item that has been raised as a nice to have however was the ability to provide a kind of “Source: 2020 Census Data” type footer at the bottom of the table upon export. Do you think it is possible to expect this functionality in the future?

    I know that table press, and the buttons extensions are in two different folders. I believe the buttons is just that, an extension of the main plugin (could be wrong.) However, my thought was that it might be useful to add a customizing field option in the dashboard (table press) config where you could attach statements like the one mentioned, and then that variable could just be appended as a print line at the end of the printing functions provided via the buttons framework.

    I tried to take a look at possibly added this field and variable in the code via a custom extension, but it is too advanced for myself. Therefore I thought I’d bring it up to the experts here.

    Again in my view it seemed it may be as simple as creating one extra field value to get populated at the table create screen, and then passing that value to the export engine either first (header?) or last (footer) for appending.

    Thanks again and look forward to working with this very powerful tool.
    Marc

Viewing 1 replies (of 1 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi Marc,

    thanks for your question, and sorry for the trouble.

    Indeed, the TablePress Buttons Extension is an add-on to the main plugin, it adds extra functionality. The Extension again relies on the external DataTables Buttons JavaScript library, see https://datatables.net/extensions/buttons/ (not developed by me, but just used in the TablePress Extension).
    This now means that the feature that you would like to see would have to be added to that JavaScript library, before it can be used by any TablePress Extension that uses the JS code.

    Unfortunately, I’m not aware of a such an option (but I haven’t checked for a some time, I’ll admit) in the Buttons JS library, sorry 🙁

    Regards,
    Tobias

Viewing 1 replies (of 1 total)
  • The topic ‘Adding footer line to Exports’ is closed to new replies.