Hi,
I tried to add the tabletools plugin to a drupal view, I really don't get it, and don't find any valuable documentation to do this.. also in a general way I don't know what is the way to add some dataTables options (http://www.datatables.net/usage/features) to some datatable view.

Im sooo bad with drupal concept........... thanks for your help !

here's what I've done so far :

. default datatables config ok, enabled, view created, working fine
. added dataTables-1.6\extras\TableTools\media content to /sites/all/modules/datatables/dataTables/media
. added the following in datatables.module template_preprocess_datatables_view() function around line 249 :

drupal_add_css(drupal_get_path('module', 'datatables') .'/dataTables/media/css/TableTools.css');
drupal_add_js(drupal_get_path('module', 'datatables') .'/js/TableTools.js');
drupal_add_js(drupal_get_path('module', 'datatables') .'/ZeroClipboard/ZeroClipboard.js');

. added the TableTools HTML

code from dataTables-1.6\extras\TableTools\INdex.html page to modules/datatables/views/datatables-view.tpl.php (using firebug)

does not react.

I also suppose I should modify/append files in my theme..

Comments

rnj786’s picture

Issue tags: +grid view, +datagrid, +tablegrid, +jqgrid

I was also trying to add this functionality to the views but the problem here is lack of developers documentation.

1> As far as i understand the tabletools SWF files provided, have to be included within the JavaScript, and it should be under the JavaScript initialization code.

2> I have no idea how to change the JavaScript initialization code in this module because i am yet to figure out from where the JavaScript initialization code is called or included in the views.

3> I have opened another feature request to be able to configure footer callback to display sum/count of the column which is also on the same lines. From the documentation on the datatables site it is evident that whatever you want to achieve is done by having correct initialization code.

Hope some one throws more light and lead this module to have all the features that the great JavaScript API is capable of providing.

bmango’s picture

Did anyone have any luck with this? I'm also trying to add table tools functionality but can't work out how to do it.

I'm using D7, but I think the installation will be more or less the same?

I've uploaded the files to where I think is the correct location (/sites/all/modules/datatables/dataTables/extras/TableTools) and I've added a "T" to the "Set sDOM Initialization Parameter" in the DataTables settings (within the view), but the tool bar is not showing up. I've also tried relocating the table tools folder to different places to see if it will work but without success. There is a real lack of documentation which is making it very difficult.

mike27’s picture

Subscribe

duellj’s picture

Status: Active » Closed (won't fix)

TableTools integration has been added in the 7.x-1.x-dev branch (see #1029798: TableTools integration into theme_datatable())