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

    (@tobiasbg)

    Hi,

    thanks for your post.

    Unfortunately, this is not directly possible with TablePress. There is however an add-on for the DataTables JavaScript library, called DataTables TableTools, that can add buttons above a table that allow downloading the table as a CSV, XLS, or PDF file (but only the whole table).

    I have packaged that add-on into a TablePress Extension, so that it can be used with TablePress. Unfortunately, there are currently some issues with that TableTools add-on, so that it is not publicly available at this time. I’m waiting for an update from its developer, and will then immediately make it available at https://tablepress.org/extensions/datatables-tabletools/ You might want to check that page regularly in the next few weeks.

    Sorry for the inconvenience.

    Regards,
    Tobias

    Thread Starter geurvanmaillard

    (@geurvanmaillard)

    I will check regularly.
    Thank you for your fast respons.

    Regards,
    PaulO

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi Paulo,

    no problem, you are welcome for the response!
    I’ve just received an email from the developer of TableTools. He has fixed that issue, so that a new version (that I can then use again in the Extension) should not take too long.
    I’l also update this post, once it’s ready (if I don’t forget… ?? ).

    Best wishes,
    Tobias

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    good news! ?? The DataTables TableTools Extension is back! You can get the Extension at https://tablepress.org/extensions/datatables-tabletools/

    Best wishes,
    Tobias

    Thread Starter geurvanmaillard

    (@geurvanmaillard)

    I’m sorry, but I’m a simple dentist.
    But where do I put this code?

    (document).ready( function () {
    $(‘#example’).dataTable( {
    “sDom”: ‘T<“clear”>lfrtip’,
    “oTableTools”: {
    “sSwfPath”: “media/swf/copy_csv_xls_pdf.swf”
    }
    } );
    } );

    In the template of the page.php?
    BTW – you delivered a zipfile with a stucture where “copy_csv_xls_pdf.swf” is located in:
    plugins/tablepress-datatables-tabletools/swf/copy_csv_xls_pdf.swf
    and not in media/swf/copy_csv_xls_pdf.swf.
    So I should change this to:
    “sSwfPath”: “swf/copy_csv_xls_pdf.swf”?
    (Once I know WHERE to put this all)

    regards,
    PaulO

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    can you explain why you want to do this? This is not necessary with the Extension. You will just have to install and activate that Extension like a regular plugin and add the parameter to the Shortcode.

    Regards,
    Tobias

    Thread Starter geurvanmaillard

    (@geurvanmaillard)

    I have a table, of which I show only 2 columns on:
    https://www.family-oosten.com/blog/blogroll/

    I have activated the plugin/extention, but I don’t see the buttons for saving the tabel asLLSX, PDF, etc …
    So I thought I had tot initiate something …

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, that’s a good first step.

    Did you also add the Shortcode parameter as explained on that page?
    And is the “Use DataTables” checkbox checked on the “Edit” page of that table? (You can uncheck the checkboxes for the individual features like Sorting and so on, if you don’t need them, but the “Use DataTables” checkbox is required.)

    Regards,
    Tobias

    Thread Starter geurvanmaillard

    (@geurvanmaillard)

    I do not see a checkbox for “Use Data Tables” on the edit page of my only table.
    See printscreen files:
    https://www.family-oosten.com/temp/table_0.jpg
    https://www.family-oosten.com/temp/table_1.jpg
    https://www.family-oosten.com/temp/table_2.jpg

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    that checkbox is on the table_2.jpg screenshot, and it’s checked. So that’s good!

    However, this means that there’s something wrong in your theme. The “footer” is not being loaded completely, due to which the JavaScript code is not executed.
    I’m not sure why this is the case, but it could be a theme problem. To verify this, could you temporarily switch to the WordPress default theme TwentyTwelve?

    Regards,
    Tobias

    Thread Starter geurvanmaillard

    (@geurvanmaillard)

    Yep, tested it and it is a Theme based problem.

    (Now what?)

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    ok, that’s a good find. From what I can see, the “footer.php” is not loaded properly.

    Can you maybe contact the theme developers about this issue? (This should not just be fixed for the TablePress TableTools Extension, but in general, as this could or can be the reason for other issues and problems with the theme and plugins.)

    Regards,
    Tobias

    Thread Starter geurvanmaillard

    (@geurvanmaillard)

    I’ve solved it myself!
    I inserted visitor-statistics in my footer, and maybe I f*ched up somehow. (Although it worked in the beginning)

    I had a copy of the original footer.php which I FTP-ed.
    Now it works.

    Thank you for your patience …

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    yes, now everything in the footer is back to normal! ?? Great to hear that you had a backup copy and that you were able to fix it ??

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Download/export link on page’ is closed to new replies.