Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Oct 2009 at 12:21 UTC
Updated:
21 Jul 2010 at 06:20 UTC
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
Comment #1
dawehnerThis is possible nowadays.
Comment #2
enboig commentedthanks.