I have nodes with a variable number of data fields that I wish to append to its' regular CCK fields and display using Views+DataTables. The variable data is stored as a serialized array in a text field in the nodes.

How can my custom module hook into template_preprocess_datatables_view (or similar) to modify the $vars['rows'] content? Or is that perhaps not the best point-of-entry?

Comments

PraetorianFX’s picture

Me to..

and let me tell report for a bug, when we use a Views Custom Field PHPcode this module returning ERROR.

DataTables warning: Unexpected number of TD elements. Expected 128 and got 112. DataTables does not support rowspan / colspan in the table body, and there must be one cell for each row/column combination.

I need support help for this.. :D

This module is awesome..

Features request, need edit in field please.. like Publish button or something else ;)

Thx so much.

duellj’s picture

Status: Active » Closed (won't fix)

Thanks PraetorianFX, could you open up separate bug and feature request issues for the two issues you raised above?

As far as adding custom columns after the view has been built, you could override the template_preprocess_datatables_view to split out a single row into multiple ones. Take a look at that function and see how it's splitting up the rows. I'm not going to add anything into the module to do this, though.