Download/export link on page
-
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?
-
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,
TobiasI will check regularly.
Thank you for your fast respons.Regards,
PaulOHi 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,
TobiasHi,
good news! π The DataTables TableTools Extension is back! You can get the Extension at http://tablepress.org/extensions/datatables-tabletools/
Best wishes,
TobiasI’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,
PaulOHi,
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,
TobiasI 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 …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,
TobiasI 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.jpgHi,
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,
TobiasYep, tested it and it is a Theme based problem.
(Now what?)
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,
TobiasI’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 …
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,
TobiasP.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!
- The topic ‘Download/export link on page’ is closed to new replies.