Hi,

i'm currently trying to make cck field with more than one column suitable for views. At the moment cck/views isn't able to handle more than one column and always creates a broken handler (as the code shows in views.module, #515: function views_get_handler(..) ).
I looked at date-module and did it like they do:
returning a "clone" of the first column in hook_field_settings, $op='views data'. But then the certain cck-field shows up twice in the views-field-list.

Furthermore I thought about manipulating the content.views.inc at #94: looping through all columns instead of the first only:

#94	    $data[$columns[0]] = array(
#99	      'field' => array(
#100        'field' => $columns[0],
...

becomes

#94   foreach($columns AS $current_column){
#95	    $data[$current_column] = array(
#98	      'field' => array(
#99         'field' => $current_column
...

How can I

  • get access to a second column, and
  • prevent views from generating a broken handler

without forcing the cck-field showing up twice in the views-field-list?

thanks and best regards,
sevi