Hi

I want Node:title of a specific content type to be exposed in a view and output the specified fields of the selected node:title.
What I can see, if I select filter as Node title and expose it, I dont get the entire list of Node titles of a specific content type. There is no "is one of" option to be able to get a select list.

I am using Views 6.x-2.5.

Following is the export of my view -

$view = new view;
$view->name = 'support_page';
$view->description = 'view to select book from the drop down and list the downloads and errata of the respective title,';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
  'title' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'field_downloads_data' => array(
    'label' => 'Downloads (field_downloads) - data',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 0,
    'data_key' => 'title',
    'exclude' => 0,
    'id' => 'field_downloads_data',
    'table' => 'node_data_field_downloads',
    'field' => 'field_downloads_data',
    'relationship' => 'none',
  ),
  'field_image_fid' => array(
    'label' => '',
    'alter' => array(
      'alter_text' => 0,
      'text' => '',
      'make_link' => 0,
      'path' => '',
      'alt' => '',
      'prefix' => '',
      'suffix' => '',
      'help' => '',
      'trim' => 0,
      'max_length' => '',
      'word_boundary' => 1,
      'ellipsis' => 1,
      'strip_tags' => 0,
      'html' => 0,
    ),
    'link_to_node' => 0,
    'label_type' => 'none',
    'format' => 'thumbview_imagelink',
    'multiple' => array(
      'group' => 1,
      'multiple_number' => '',
      'multiple_from' => '',
      'multiple_reversed' => 0,
    ),
    'exclude' => 0,
    'id' => 'field_image_fid',
    'table' => 'node_data_field_image',
    'field' => 'field_image_fid',
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'printbook' => 'printbook',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => 'type_op',
      'label' => 'Node: Type',
      'use_operator' => 0,
      'identifier' => 'type',
      'optional' => 0,
      'single' => 1,
      'remember' => 0,
      'reduce' => 0,
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'title' => array(
    'operator' => 'word',
    'value' => '',
    'group' => '0',
    'exposed' => TRUE,
    'expose' => array(
      'use_operator' => 0,
      'operator' => 'title_op',
      'identifier' => 'title',
      'label' => 'Select the book title',
      'optional' => 0,
      'remember' => 0,
    ),
    'case' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('use_ajax', TRUE);
$handler->override_option('style_options', array(
  'grouping' => '',
));
$handler->override_option('exposed_block', TRUE);
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);

Any help would be appreciated.
Thanks!

Comments

dave reid’s picture

Project: Drupal core » Views (for Drupal 7)
Version: 6.8 » 6.x-2.5
Component: other » Code
Category: feature » support

Wrong issue queue.

sej123’s picture

Component: Code » exposed filters
Category: support » feature

Sorry for the wrong fields!
Could please help me with the above stated problem now?

Thanks

sej123’s picture

Title: Exposed Node:Title » Exposed Node:Title of a content type in the Select List

Sorry again for reposting!

elektrorl’s picture

same problem.

momper’s picture

same problem

esmerel’s picture

Status: Active » Closed (fixed)

This issue is a year old, it's likely either resolved or no longer relevant.

momper’s picture

... for me it's still relevant ... but i'm not a programmer

esmerel’s picture

Status: Closed (fixed) » Postponed

OK, I'd missed this was a feature request. There is an 'is equal to' filter, but that's not quite the same. I'll move it to postponed rather than closed.

Isostar’s picture

+1

syakely’s picture

Here is a module I submitted that dose the following. http://drupal.org/node/998192

New Views Filter that creates an exposed Multi-Select filter of the current view's Node Titles. Allows user to filter by node titles. I needed it for a current project and found a few threads of others looking for this as well. This filter only works as an exposed filter. My hope is to get collaboration to improve this filter and to continue to contribute back to the community. I have not found any other modules that provide this filter.

merlinofchaos’s picture

Status: Postponed » Closed (won't fix)

Nothing like this iwll go into Views, but maybe the module #10 points to is enough. If not, contrib will have to doit.