Hi,
such code can be added to the DataTables loading call by using the “Custom Commands” textfield in the “DataTables JavaScript features” section on the “Edit” screen of the table.
In this case, you should only need to add this:
"oTableTools": { "aButtons": [ "copy", "print" ] }
Regards,
Tobias
Hey Tobias,
I really appreciate your assistance but I inserted the code you suggested and it doesn’t seem to work. Perhaps I’m leaving a step out of the process (it would not be the first time) but it seems rather straight forward.
Go to this link to see an example of how/where I inserted the code you suggested.
Also, this is any example of some of the tables I’m trying to modify.
http://www.emptus.com/marketzeitgeist/?page_id=49
Once again, thank you very much indeed for all of your hard work and assistance. I assure you that as soon as this site is open for business we’ll make sure you are compensated.
Until then…fingers crossed!
take care,
Matt
Hi Matt,
argh, I’m seeing the reason for the problem:
As it seems, the possibility to change the visibility of the buttons with that command is part of TableTools 2.0 only. WP-Table Reloaded however ships with version 1.8.
Unfortunately, I’m not quite sure, when I can include version 2.0, because there are a few things that need special attention, as part of the integration into WP-Table Reloaded.
So, if you really need the functionality now, you’ll need to manually include TableTools into your site, by following the documentation on their website. Basically, this means that you would use WP-Table Reloaded only to generate the static HTML output for a table, but not to load DataTables/TableTools. This would need to be done manually.
Regards,
Tobias
Thanks for all of your help with this Tobias! Will glady wait and not a big deal at all.