$view = new view; $view->name = 'buchtipps'; $view->description = 'Amazon Buchtipps'; $view->tag = 'Amazon'; $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( 'id' => 'title', 'table' => 'node', 'field' => 'title', ), )); $handler->override_option('sorts', array( 'sticky' => array( 'order' => 'DESC', 'id' => 'sticky', 'table' => 'node', 'field' => 'sticky', 'relationship' => 'none', ), 'title' => array( 'id' => 'title', 'table' => 'node', 'field' => 'title', ), )); $handler->override_option('filters', array( 'status_extra' => array( 'id' => 'status_extra', 'table' => 'node', 'field' => 'status_extra', ), 'type' => array( 'operator' => 'in', 'value' => array( 'amazon' => 'amazon', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'type', 'table' => 'node', 'field' => 'type', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'language' => array( 'operator' => 'in', 'value' => array( '***CURRENT_LANGUAGE***' => '***CURRENT_LANGUAGE***', '***NO_LANGUAGE***' => '***NO_LANGUAGE***', ), 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' => '', ), 'id' => 'language', 'table' => 'node', 'field' => 'language', 'override' => array( 'button' => 'Override', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'none', 'role' => array(), 'perm' => '', )); $handler->override_option('title', 'Amazon Buchtipps'); $handler->override_option('header', 'Hier gibt es eine kleine Sammlung von Buchtipps zu Drupal und Webdesign allgemein, mit direktem Zugriff auf die Produktdaten von Amazon Deutschland.'); $handler->override_option('header_format', '1'); $handler->override_option('header_empty', 1); $handler->override_option('footer_format', '1'); $handler->override_option('empty_format', '1'); $handler->override_option('items_per_page', 5); $handler->override_option('use_pager', '1'); $handler->override_option('row_plugin', 'node'); $handler->override_option('row_options', array( 'teaser' => 0, 'links' => 1, 'comments' => 1, )); $handler = $view->new_display('page', 'Seite', 'page_1'); $handler->override_option('path', 'buchtipps'); $handler->override_option('menu', array( 'type' => 'normal', 'title' => 'Buchtipps', 'weight' => '0', 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'weight' => '0', ));