Closed (won't fix)
Project:
DataTables
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2010 at 13:35 UTC
Updated:
11 Nov 2010 at 02:31 UTC
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
Comment #1
PraetorianFX commentedMe 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.
Comment #2
duellj commentedThanks 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.