Views dont filter out by taxonomy

lomz - November 20, 2008 - 07:24

I am using latest version of d6.x and views2.
I am trying to show all blogposts that is not sorted by a spesific vocabulary.
I have been able to filter out all the posts that is tagged by this vocabulary, but this is the opposite of what I want to do.

Here is the view, is it any body that can see what I do wrong?
Please tell me if anything is unclear.

$view = new view;
$view->name = 'bulk';
$view->description = 'bulk';
$view->tag = 'bulk';
$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' => 'Tittel',
    'link_to_node' => 0,
    'exclude' => 0,
    'id' => 'title',
    'table' => 'node',
    'field' => 'title',
    'relationship' => 'none',
  ),
  'edit_node' => array(
    'label' => 'Edit link',
    'text' => 'Rediger',
    'exclude' => 0,
    'id' => 'edit_node',
    'table' => 'node',
    'field' => 'edit_node',
    'relationship' => 'none',
  ),
  'name' => array(
    'label' => 'Forfatter',
    'link_to_user' => 0,
    'exclude' => 0,
    'id' => 'name',
    'table' => 'users',
    'field' => 'name',
    'relationship' => 'none',
  ),
  'tid' => array(
    'label' => 'All terms',
    'type' => 'separator',
    'separator' => ', ',
    'empty' => '',
    'link_to_taxonomy' => 0,
    'limit' => 0,
    'vids' => array(
      '1' => 0,
      '10' => 0,
      '15' => 0,
      '14' => 0,
    ),
    'exclude' => 0,
    'id' => 'tid',
    'table' => 'term_node',
    'field' => 'tid',
    'relationship' => 'none',
  ),
  'status' => array(
    'label' => 'Publisert',
    'type' => 'yes-no',
    'not' => 0,
    'exclude' => 0,
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
  'promote' => array(
    'label' => 'Vis på forsiden',
    'type' => 'yes-no',
    'not' => 0,
    'exclude' => 0,
    'id' => 'promote',
    'table' => 'node',
    'field' => 'promote',
    'relationship' => 'none',
  ),
));
$handler->override_option('filters', array(
  'type' => array(
    'operator' => 'in',
    'value' => array(
      'blog' => 'blog',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'type',
    'table' => 'node',
    'field' => 'type',
    'relationship' => 'none',
  ),
  'status' => array(
    'operator' => '=',
    'value' => 1,
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => FALSE,
      'label' => '',
    ),
    'id' => 'status',
    'table' => 'node',
    'field' => 'status',
    'relationship' => 'none',
  ),
  'vid' => array(
    'operator' => 'not in',
    'value' => array(
      '15' => '15',
    ),
    'group' => '0',
    'exposed' => FALSE,
    'expose' => array(
      'operator' => 'vid_op',
      'label' => 'Taksonomi: Vocabulary',
      'use_operator' => 1,
      'identifier' => 'vid',
      'optional' => 1,
      'single' => 1,
      'remember' => 0,
      'reduce' => 1,
    ),
    'id' => 'vid',
    'table' => 'term_data',
    'field' => 'vid',
    'relationship' => 'none',
  ),
));
$handler->override_option('access', array(
  'type' => 'none',
));
$handler->override_option('title', 'Bulk');
$handler->override_option('items_per_page', 100);
$handler->override_option('use_pager', '1');
$handler->override_option('distinct', 1);
$handler->override_option('style_plugin', 'table');
$handler = $view->new_display('page', 'Nettside', 'page_1');
$handler->override_option('path', 'admin/bulk');
$handler->override_option('menu', array(
  'type' => 'normal',
  'title' => 'Bulk',
  'weight' => '7',
  'name' => 'navigation',
));
$handler->override_option('tab_options', array(
  'type' => 'none',
  'title' => '',
  'weight' => 0,
));

 
 

Drupal is a registered trademark of Dries Buytaert.