WordPress.org

Forums

TablePress
[resolved] Download/export link on page (15 posts)

  1. geurvanmaillard
    Member
    Posted 2 years ago #

    Hi,

    is it possible to create a link on the same page of the table I show?
    A link for (by me slected) columns of a table
    or a link for the whole table?

    http://wordpress.org/extend/plugins/tablepress/

  2. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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 http://tablepress.org/extensions/datatables-tabletools/ You might want to check that page regularly in the next few weeks.

    Sorry for the inconvenience.

    Regards,
    Tobias

  3. geurvanmaillard
    Member
    Posted 2 years ago #

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

    Regards,
    PaulO

  4. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  5. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

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

    Best wishes,
    Tobias

  6. geurvanmaillard
    Member
    Posted 2 years ago #

    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

  7. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  8. geurvanmaillard
    Member
    Posted 2 years ago #

    I have a table, of which I show only 2 columns on:
    http://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 ...

  9. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  10. geurvanmaillard
    Member
    Posted 2 years ago #

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

  11. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  12. geurvanmaillard
    Member
    Posted 2 years ago #

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

    (Now what?)

  13. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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

  14. geurvanmaillard
    Member
    Posted 2 years ago #

    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 ...

  15. TobiasBg
    Member
    Plugin Author

    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TablePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic