Created
February 10, 2020 09:42
-
-
Save asharirfan/fe6738960d53fc3eeda7ff16e9aa1310 to your computer and use it in GitHub Desktop.
GUQ Drupal View Export Source News Item In the Media Meta Data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $view = new view(); | |
| $view->name = 'meta_data_news_item_in_the_media'; | |
| $view->description = ''; | |
| $view->tag = 'default'; | |
| $view->base_table = 'node'; | |
| $view->human_name = 'Meta Data News Item In the Media'; | |
| $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['use_more_always'] = FALSE; | |
| $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['pager']['type'] = 'full'; | |
| $handler->display->display_options['style_plugin'] = 'default'; | |
| $handler->display->display_options['row_plugin'] = 'fields'; | |
| /* Field: Content: Nid */ | |
| $handler->display->display_options['fields']['nid']['id'] = 'nid'; | |
| $handler->display->display_options['fields']['nid']['table'] = 'node'; | |
| $handler->display->display_options['fields']['nid']['field'] = 'nid'; | |
| /* Field: Content: Contributor */ | |
| $handler->display->display_options['fields']['field_newsitem_contributor']['id'] = 'field_newsitem_contributor'; | |
| $handler->display->display_options['fields']['field_newsitem_contributor']['table'] = 'field_data_field_newsitem_contributor'; | |
| $handler->display->display_options['fields']['field_newsitem_contributor']['field'] = 'field_newsitem_contributor'; | |
| $handler->display->display_options['fields']['field_newsitem_contributor']['settings'] = array( | |
| 'bypass_access' => 0, | |
| 'link' => 0, | |
| 'linked_field' => array( | |
| 'linked' => 0, | |
| 'destination' => '', | |
| 'advanced' => array( | |
| 'title' => '', | |
| 'target' => '', | |
| 'class' => '', | |
| 'rel' => '', | |
| 'text' => '', | |
| ), | |
| ), | |
| ); | |
| /* Field: Content: News date */ | |
| $handler->display->display_options['fields']['field_date']['id'] = 'field_date'; | |
| $handler->display->display_options['fields']['field_date']['table'] = 'field_data_field_date'; | |
| $handler->display->display_options['fields']['field_date']['field'] = 'field_date'; | |
| $handler->display->display_options['fields']['field_date']['label'] = 'News Date'; | |
| $handler->display->display_options['fields']['field_date']['type'] = 'date_plain'; | |
| $handler->display->display_options['fields']['field_date']['settings'] = array( | |
| 'format_type' => 'custom', | |
| 'custom_date_format' => 'Y-m-d H:i:s', | |
| 'fromto' => 'both', | |
| 'multiple_number' => '', | |
| 'multiple_from' => '', | |
| 'multiple_to' => '', | |
| 'show_remaining_days' => 0, | |
| 'linked_field' => array( | |
| 'linked' => 0, | |
| 'destination' => '', | |
| 'advanced' => array( | |
| 'title' => '', | |
| 'target' => '', | |
| 'class' => '', | |
| 'rel' => '', | |
| 'text' => '', | |
| ), | |
| ), | |
| ); | |
| /* Field: Content: Source */ | |
| $handler->display->display_options['fields']['field_news_source']['id'] = 'field_news_source'; | |
| $handler->display->display_options['fields']['field_news_source']['table'] = 'field_data_field_news_source'; | |
| $handler->display->display_options['fields']['field_news_source']['field'] = 'field_news_source'; | |
| $handler->display->display_options['fields']['field_news_source']['settings'] = array( | |
| 'bypass_access' => 0, | |
| 'link' => 0, | |
| 'linked_field' => array( | |
| 'linked' => 0, | |
| 'destination' => '', | |
| 'advanced' => array( | |
| 'title' => '', | |
| 'target' => '', | |
| 'class' => '', | |
| 'rel' => '', | |
| 'text' => '', | |
| ), | |
| ), | |
| ); | |
| /* Field: Entity translation: Details: translated */ | |
| $handler->display->display_options['fields']['field_body_et']['id'] = 'field_body_et'; | |
| $handler->display->display_options['fields']['field_body_et']['table'] = 'field_data_field_body'; | |
| $handler->display->display_options['fields']['field_body_et']['field'] = 'field_body_et'; | |
| $handler->display->display_options['fields']['field_body_et']['label'] = 'Summary'; | |
| $handler->display->display_options['fields']['field_body_et']['type'] = 'text_plain'; | |
| $handler->display->display_options['fields']['field_body_et']['settings'] = array( | |
| 'linked_field' => array( | |
| 'linked' => 0, | |
| 'destination' => '', | |
| 'advanced' => array( | |
| 'title' => '', | |
| 'target' => '', | |
| 'class' => '', | |
| 'rel' => '', | |
| 'text' => '', | |
| ), | |
| ), | |
| ); | |
| /* Field: Field: Link */ | |
| $handler->display->display_options['fields']['field_link']['id'] = 'field_link'; | |
| $handler->display->display_options['fields']['field_link']['table'] = 'field_data_field_link'; | |
| $handler->display->display_options['fields']['field_link']['field'] = 'field_link'; | |
| $handler->display->display_options['fields']['field_link']['click_sort_column'] = 'url'; | |
| $handler->display->display_options['fields']['field_link']['type'] = 'link_plain'; | |
| $handler->display->display_options['fields']['field_link']['settings'] = array( | |
| 'linked_field' => array( | |
| 'linked' => 0, | |
| 'destination' => '', | |
| 'advanced' => array( | |
| 'title' => '', | |
| 'target' => '', | |
| 'class' => '', | |
| 'rel' => '', | |
| 'text' => '', | |
| ), | |
| ), | |
| ); | |
| /* Sort criterion: Content: Post date */ | |
| $handler->display->display_options['sorts']['created']['id'] = 'created'; | |
| $handler->display->display_options['sorts']['created']['table'] = 'node'; | |
| $handler->display->display_options['sorts']['created']['field'] = 'created'; | |
| $handler->display->display_options['sorts']['created']['order'] = 'DESC'; | |
| /* Filter criterion: Content: Type */ | |
| $handler->display->display_options['filters']['type']['id'] = 'type'; | |
| $handler->display->display_options['filters']['type']['table'] = 'node'; | |
| $handler->display->display_options['filters']['type']['field'] = 'type'; | |
| $handler->display->display_options['filters']['type']['value'] = array( | |
| 'in_the_media' => 'in_the_media', | |
| ); | |
| /* Display: Data export */ | |
| $handler = $view->new_display('views_data_export', 'Data export', 'views_data_export_1'); | |
| $handler->display->display_options['pager']['type'] = 'none'; | |
| $handler->display->display_options['pager']['options']['offset'] = '0'; | |
| $handler->display->display_options['style_plugin'] = 'views_data_export_csv'; | |
| $handler->display->display_options['path'] = 'meta-news-item-in-the-media.csv'; | |
| $handler->display->display_options['use_batch'] = 'batch'; | |
| $handler->display->display_options['segment_size'] = '100'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment