$view = new view(); $view->name = 'test'; $view->description = ''; $view->tag = 'default'; $view->base_table = 'field_collection_item'; $view->human_name = 'test'; $view->core = 7; $view->api_version = '3.0'; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ /* Display: Master */ $handler = $view->new_display('default', 'Master', 'default'); $handler->display->display_options['title'] = 'Gewerbegebiete in [field_name_der_kommune]'; $handler->display->display_options['use_more_always'] = FALSE; $handler->display->display_options['use_more_text'] = 'mehr'; $handler->display->display_options['access']['type'] = 'perm'; $handler->display->display_options['cache']['type'] = 'none'; $handler->display->display_options['query']['type'] = 'views_query'; $handler->display->display_options['exposed_form']['type'] = 'basic'; $handler->display->display_options['exposed_form']['options']['submit_button'] = 'Anwenden'; $handler->display->display_options['exposed_form']['options']['reset_button_label'] = 'Zurücksetzen'; $handler->display->display_options['exposed_form']['options']['exposed_sorts_label'] = 'Sortieren nach'; $handler->display->display_options['exposed_form']['options']['sort_asc_label'] = 'Aufsteigend'; $handler->display->display_options['exposed_form']['options']['sort_desc_label'] = 'Absteigend'; $handler->display->display_options['pager']['type'] = 'none'; $handler->display->display_options['pager']['options']['offset'] = '0'; $handler->display->display_options['style_plugin'] = 'table'; $handler->display->display_options['style_options']['columns'] = array( 'field_name_der_kommune' => 'field_name_der_kommune', 'field_name_des_gebietes' => 'field_name_des_gebietes', 'field_nutzungsart_2' => 'field_nutzungsart_2', 'field_verf_gbare_fl_che_2' => 'field_verf_gbare_fl_che_2', 'field_name_des_gebietes_1' => 'field_name_des_gebietes_1', ); $handler->display->display_options['style_options']['default'] = 'field_verf_gbare_fl_che_2'; $handler->display->display_options['style_options']['info'] = array( 'field_name_der_kommune' => array( 'sortable' => 0, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0, ), 'field_name_des_gebietes' => array( 'sortable' => 1, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0, ), 'field_nutzungsart_2' => array( 'align' => '', 'separator' => '', 'empty_column' => 0, ), 'field_verf_gbare_fl_che_2' => array( 'sortable' => 1, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0, ), 'field_name_des_gebietes_1' => array( 'sortable' => 0, 'default_sort_order' => 'asc', 'align' => '', 'separator' => '', 'empty_column' => 0, ), ); /* Verhalten, wenn keine Ergebnisse vorliegen: Global: Textbereich */ $handler->display->display_options['empty']['area']['id'] = 'area'; $handler->display->display_options['empty']['area']['table'] = 'views'; $handler->display->display_options['empty']['area']['field'] = 'area'; $handler->display->display_options['empty']['area']['empty'] = TRUE; $handler->display->display_options['empty']['area']['content'] = 'Keine Gewerbegebiete eingetragen'; $handler->display->display_options['empty']['area']['format'] = 'full_html'; /* Beziehung: Field collection item: Entität mit Gewerbegebiet (field_test) */ $handler->display->display_options['relationships']['field_test_node']['id'] = 'field_test_node'; $handler->display->display_options['relationships']['field_test_node']['table'] = 'field_collection_item'; $handler->display->display_options['relationships']['field_test_node']['field'] = 'field_test_node'; /* Beziehung: Entity Reference: Entität, die verweist */ $handler->display->display_options['relationships']['reverse_field_zuordnung_des_gewerbegebie_node']['id'] = 'reverse_field_zuordnung_des_gewerbegebie_node'; $handler->display->display_options['relationships']['reverse_field_zuordnung_des_gewerbegebie_node']['table'] = 'node'; $handler->display->display_options['relationships']['reverse_field_zuordnung_des_gewerbegebie_node']['field'] = 'reverse_field_zuordnung_des_gewerbegebie_node'; $handler->display->display_options['relationships']['reverse_field_zuordnung_des_gewerbegebie_node']['relationship'] = 'field_test_node'; $handler->display->display_options['relationships']['reverse_field_zuordnung_des_gewerbegebie_node']['label'] = 'verweiser'; /* Beziehung: Inhalt: Gewerbegebiet (field_test) */ $handler->display->display_options['relationships']['field_test_value']['id'] = 'field_test_value'; $handler->display->display_options['relationships']['field_test_value']['table'] = 'field_data_field_test'; $handler->display->display_options['relationships']['field_test_value']['field'] = 'field_test_value'; $handler->display->display_options['relationships']['field_test_value']['relationship'] = 'reverse_field_zuordnung_des_gewerbegebie_node'; $handler->display->display_options['relationships']['field_test_value']['label'] = 'fc_test_gewerbegebiet'; $handler->display->display_options['relationships']['field_test_value']['delta'] = '-1'; /* Feld: Inhalt: Name der Kommune */ $handler->display->display_options['fields']['field_name_der_kommune']['id'] = 'field_name_der_kommune'; $handler->display->display_options['fields']['field_name_der_kommune']['table'] = 'field_data_field_name_der_kommune'; $handler->display->display_options['fields']['field_name_der_kommune']['field'] = 'field_name_der_kommune'; $handler->display->display_options['fields']['field_name_der_kommune']['relationship'] = 'field_test_node'; $handler->display->display_options['fields']['field_name_der_kommune']['exclude'] = TRUE; $handler->display->display_options['fields']['field_name_der_kommune']['settings'] = array( 'empty_fields_handler' => '', 'empty_fields_emptyfieldtext_empty_text' => '', ); /* Feld: Field collection item: Name des Gewerbegebiets */ $handler->display->display_options['fields']['field_name_des_gebietes']['id'] = 'field_name_des_gebietes'; $handler->display->display_options['fields']['field_name_des_gebietes']['table'] = 'field_data_field_name_des_gebietes'; $handler->display->display_options['fields']['field_name_des_gebietes']['field'] = 'field_name_des_gebietes'; $handler->display->display_options['fields']['field_name_des_gebietes']['label'] = 'Gewerbegebiet'; $handler->display->display_options['fields']['field_name_des_gebietes']['element_label_colon'] = FALSE; $handler->display->display_options['fields']['field_name_des_gebietes']['type'] = 'title_linked'; $handler->display->display_options['fields']['field_name_des_gebietes']['settings'] = array( 'title_style' => '_none', 'title_link' => 'content', 'title_class' => '', 'empty_fields_handler' => '', 'empty_fields_emptyfieldtext_empty_text' => '', ); /* Feld: Field collection item: Nutzungsart */ $handler->display->display_options['fields']['field_nutzungsart_2']['id'] = 'field_nutzungsart_2'; $handler->display->display_options['fields']['field_nutzungsart_2']['table'] = 'field_data_field_nutzungsart_2'; $handler->display->display_options['fields']['field_nutzungsart_2']['field'] = 'field_nutzungsart_2'; $handler->display->display_options['fields']['field_nutzungsart_2']['element_label_colon'] = FALSE; $handler->display->display_options['fields']['field_nutzungsart_2']['settings'] = array( 'empty_fields_handler' => '', 'empty_fields_emptyfieldtext_empty_text' => '', ); $handler->display->display_options['fields']['field_nutzungsart_2']['delta_offset'] = '0'; /* Feld: Field collection item: Verfügbare Fläche */ $handler->display->display_options['fields']['field_verf_gbare_fl_che_2']['id'] = 'field_verf_gbare_fl_che_2'; $handler->display->display_options['fields']['field_verf_gbare_fl_che_2']['table'] = 'field_data_field_verf_gbare_fl_che_2'; $handler->display->display_options['fields']['field_verf_gbare_fl_che_2']['field'] = 'field_verf_gbare_fl_che_2'; $handler->display->display_options['fields']['field_verf_gbare_fl_che_2']['settings'] = array( 'thousand_separator' => '', 'prefix_suffix' => 1, 'empty_fields_handler' => '', 'empty_fields_emptyfieldtext_empty_text' => '', ); /* Feld: Field collection item: Name des Gewerbegebiets */ $handler->display->display_options['fields']['field_name_des_gebietes_1']['id'] = 'field_name_des_gebietes_1'; $handler->display->display_options['fields']['field_name_des_gebietes_1']['table'] = 'field_data_field_name_des_gebietes'; $handler->display->display_options['fields']['field_name_des_gebietes_1']['field'] = 'field_name_des_gebietes'; $handler->display->display_options['fields']['field_name_des_gebietes_1']['relationship'] = 'field_test_value'; $handler->display->display_options['fields']['field_name_des_gebietes_1']['settings'] = array( 'empty_fields_handler' => '', 'empty_fields_emptyfieldtext_empty_text' => '', ); /* Kontextfilter: Inhalt: Beitrags-ID */ $handler->display->display_options['arguments']['nid']['id'] = 'nid'; $handler->display->display_options['arguments']['nid']['table'] = 'node'; $handler->display->display_options['arguments']['nid']['field'] = 'nid'; $handler->display->display_options['arguments']['nid']['relationship'] = 'field_test_node'; $handler->display->display_options['arguments']['nid']['default_action'] = 'default'; $handler->display->display_options['arguments']['nid']['exception']['title'] = 'Alle'; $handler->display->display_options['arguments']['nid']['default_argument_type'] = 'node'; $handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0'; $handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary'; $handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25'; /* Display: Page */ $handler = $view->new_display('page', 'Page', 'page'); $handler->display->display_options['path'] = 'node/%/test';