Created
July 29, 2016 23:17
-
-
Save UltraBob/6d6f6fb3f2e7f23cb1fefaf24d7d4c98 to your computer and use it in GitHub Desktop.
This file contains 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 = 'publisher_and_copyright'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'Publisher and Copyright'; | |
$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'] = 'Publisher and Copyright'; | |
$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['query']['options']['contextual_filters_or'] = TRUE; | |
$handler->display->display_options['exposed_form']['type'] = 'basic'; | |
$handler->display->display_options['pager']['type'] = 'full'; | |
$handler->display->display_options['pager']['options']['items_per_page'] = '20'; | |
$handler->display->display_options['style_plugin'] = 'default'; | |
$handler->display->display_options['row_plugin'] = 'node'; | |
/* Relationship: Entity Reference: Referenced Entity */ | |
$handler->display->display_options['relationships']['field_doc_publisher_target_id']['id'] = 'field_doc_publisher_target_id'; | |
$handler->display->display_options['relationships']['field_doc_publisher_target_id']['table'] = 'field_data_field_doc_publisher'; | |
$handler->display->display_options['relationships']['field_doc_publisher_target_id']['field'] = 'field_doc_publisher_target_id'; | |
/* Relationship: Entity Reference: Referenced Entity */ | |
$handler->display->display_options['relationships']['field_doc_copyright_target_id']['id'] = 'field_doc_copyright_target_id'; | |
$handler->display->display_options['relationships']['field_doc_copyright_target_id']['table'] = 'field_data_field_doc_copyright'; | |
$handler->display->display_options['relationships']['field_doc_copyright_target_id']['field'] = 'field_doc_copyright_target_id'; | |
/* Field: Content: Title */ | |
$handler->display->display_options['fields']['title']['id'] = 'title'; | |
$handler->display->display_options['fields']['title']['table'] = 'node'; | |
$handler->display->display_options['fields']['title']['field'] = 'title'; | |
$handler->display->display_options['fields']['title']['label'] = ''; | |
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE; | |
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE; | |
/* 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'; | |
/* Contextual filter: Taxonomy term: Name (name_field) */ | |
$handler->display->display_options['arguments']['name_field_value']['id'] = 'name_field_value'; | |
$handler->display->display_options['arguments']['name_field_value']['table'] = 'field_data_name_field'; | |
$handler->display->display_options['arguments']['name_field_value']['field'] = 'name_field_value'; | |
$handler->display->display_options['arguments']['name_field_value']['relationship'] = 'field_doc_publisher_target_id'; | |
$handler->display->display_options['arguments']['name_field_value']['default_argument_type'] = 'fixed'; | |
$handler->display->display_options['arguments']['name_field_value']['summary']['number_of_records'] = '0'; | |
$handler->display->display_options['arguments']['name_field_value']['summary']['format'] = 'default_summary'; | |
$handler->display->display_options['arguments']['name_field_value']['summary_options']['items_per_page'] = '25'; | |
$handler->display->display_options['arguments']['name_field_value']['specify_validation'] = TRUE; | |
$handler->display->display_options['arguments']['name_field_value']['validate']['type'] = 'taxonomy_term'; | |
$handler->display->display_options['arguments']['name_field_value']['validate_options']['vocabularies'] = array( | |
'publisher' => 'publisher', | |
); | |
$handler->display->display_options['arguments']['name_field_value']['validate_options']['type'] = 'name'; | |
$handler->display->display_options['arguments']['name_field_value']['validate_options']['transform'] = TRUE; | |
$handler->display->display_options['arguments']['name_field_value']['limit'] = '0'; | |
/* Contextual filter: Taxonomy term: Name (name_field) */ | |
$handler->display->display_options['arguments']['name_field_value_1']['id'] = 'name_field_value_1'; | |
$handler->display->display_options['arguments']['name_field_value_1']['table'] = 'field_data_name_field'; | |
$handler->display->display_options['arguments']['name_field_value_1']['field'] = 'name_field_value'; | |
$handler->display->display_options['arguments']['name_field_value_1']['relationship'] = 'field_doc_publisher_target_id'; | |
$handler->display->display_options['arguments']['name_field_value_1']['default_argument_type'] = 'fixed'; | |
$handler->display->display_options['arguments']['name_field_value_1']['summary']['format'] = 'default_summary'; | |
/* Filter criterion: Content: Published */ | |
$handler->display->display_options['filters']['status']['id'] = 'status'; | |
$handler->display->display_options['filters']['status']['table'] = 'node'; | |
$handler->display->display_options['filters']['status']['field'] = 'status'; | |
$handler->display->display_options['filters']['status']['value'] = 1; | |
$handler->display->display_options['filters']['status']['group'] = 1; | |
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE; | |
/* Display: Page */ | |
$handler = $view->new_display('page', 'Page', 'page'); | |
$handler->display->display_options['path'] = 'pub/by/publisher/%'; | |
$translatables['publisher_and_copyright'] = array( | |
t('Master'), | |
t('Publisher and Copyright'), | |
t('more'), | |
t('Apply'), | |
t('Reset'), | |
t('Sort by'), | |
t('Asc'), | |
t('Desc'), | |
t('Items per page'), | |
t('- All -'), | |
t('Offset'), | |
t('« first'), | |
t('‹ previous'), | |
t('next ›'), | |
t('last »'), | |
t('Taxonomy term entity referenced from field_doc_publisher'), | |
t('Taxonomy term entity referenced from field_doc_copyright'), | |
t('All'), | |
t('Page'), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment