Contribution Date
Technology
Contribution Project
Contribution Details
This has been a great help! Now I can see some of the referenced fields as view filters, great! One more thing though I need to expose the none standard field types of the referenced node type, meaning the once that were created using CCK as view filters. How do I do that? Here's the code I believe that does it but it doesn't work for the field type I've added, i.e. the field_accessability. Need help please!
...'fields' => array(
'title' => array(
'name' => t('@name Referenced Node: Title', array('@name' => $name)),
'handler' => 'views_handler_nodereference_field_nodelink',
'option' => array(
'#type' => 'select',
'#options' => array(
'link' => 'As link',
'nolink' => 'Without link'
),
),
'sortable' => true,
'addlfields' => array('changed', 'nid'),
'help' => t('Display the title of the node.'),
),
'field_accessablility' => array(
'name' => t('@name Referenced Node: Accessablility', array('@name' => $name)),
'handler' => 'views_handler_content',
'option' => array(
'#type' => 'select',
'#options' => array(
'link' => 'As link',
'nolink' => 'Without link'
),
),
'sortable' => true,
'addlfields' => array('changed', 'nid'),
'help' => t('Display the accessibility of the node.'),
),
...
It seems like from the patch provided by dan3h, in the fields array you just add all the fields to be provided as filters, now I believe the problem I'm facing is giving the handler for my field. Please help me to solve this!
Contribution Issue Link
Contribution Link
Files count
0
Patches count
0