I need the type field in {node} to make a proper link to a node. I think the way of doing this is adding an optio to views_handler_filter_node_type.inc but I don't know how to do this; so I added a new field to my view file:


  // Node type code
  $data['node']['type_code'] = array(
    'title' => t('Type code'), // The item it appears as on the UI,
    'real field' => 'type',
    'help' => t('The type of a node as it appear in DataBase.'), // The help that appears on the UI,
    'field' => array(
      'handler' => 'views_handler_field',
      'click sortable' => TRUE,
    ),
    'sort' => array(
      'handler' => 'views_handler_sort',
    ),
    'filter' => array(
      'handler' => 'views_handler_filter',
    ),
    'argument' => array(
      'handler' => 'views_handler_argument',
    ),
  );


Comments

dawehner’s picture

Status: Active » Fixed

This is possible nowadays.

enboig’s picture

thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.