Created
February 10, 2020 09:51
-
-
Save asharirfan/bbc25565140bb62d3b8b0690d35e42b4 to your computer and use it in GitHub Desktop.
GUQ Drupal View Export Source News Item Quote 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_quote'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'Meta Data News Item Quote'; | |
$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: Link: translated */ | |
$handler->display->display_options['fields']['field_link_et']['id'] = 'field_link_et'; | |
$handler->display->display_options['fields']['field_link_et']['table'] = 'field_data_field_link'; | |
$handler->display->display_options['fields']['field_link_et']['field'] = 'field_link_et'; | |
$handler->display->display_options['fields']['field_link_et']['label'] = 'News Link'; | |
$handler->display->display_options['fields']['field_link_et']['click_sort_column'] = 'url'; | |
$handler->display->display_options['fields']['field_link_et']['type'] = 'link_plain'; | |
$handler->display->display_options['fields']['field_link_et']['settings'] = array( | |
'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'] = 'Quote'; | |
$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' => '', | |
), | |
), | |
); | |
/* 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( | |
'news_item_quote' => 'news_item_quote', | |
); | |
/* 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-quote.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