Last active
December 16, 2015 03:09
-
-
Save chales/5367767 to your computer and use it in GitHub Desktop.
Drupal 7 Advanced Content search view. Displays advanced content search info with search options and in a sortable fashion.
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 = 'content_advanced'; | |
$view->description = 'Allows for granular content search'; | |
$view->tag = 'default'; | |
$view->base_table = 'node'; | |
$view->human_name = 'Content Advanced'; | |
$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'] = 'Content Advanced'; | |
$handler->display->display_options['access']['type'] = 'perm'; | |
$handler->display->display_options['access']['perm'] = 'administer nodes'; | |
$handler->display->display_options['cache']['type'] = 'none'; | |
$handler->display->display_options['query']['type'] = 'views_query'; | |
$handler->display->display_options['query']['options']['query_comment'] = FALSE; | |
$handler->display->display_options['exposed_form']['type'] = 'basic'; | |
$handler->display->display_options['pager']['type'] = 'full'; | |
$handler->display->display_options['pager']['options']['items_per_page'] = '50'; | |
$handler->display->display_options['style_plugin'] = 'table'; | |
$handler->display->display_options['style_options']['group_rendered'] = 1; | |
$handler->display->display_options['style_options']['columns'] = array( | |
'title' => 'title', | |
'type' => 'type', | |
'uid' => 'uid', | |
'created' => 'created', | |
'status' => 'status', | |
'edit_node' => 'edit_node', | |
); | |
$handler->display->display_options['style_options']['default'] = '-1'; | |
$handler->display->display_options['style_options']['info'] = array( | |
'title' => array( | |
'sortable' => 1, | |
'default_sort_order' => 'asc', | |
'align' => '', | |
'separator' => '', | |
'empty_column' => 0, | |
), | |
'type' => array( | |
'sortable' => 1, | |
'default_sort_order' => 'asc', | |
'align' => '', | |
'separator' => '', | |
'empty_column' => 0, | |
), | |
'uid' => array( | |
'align' => '', | |
'separator' => '', | |
'empty_column' => 0, | |
), | |
'created' => array( | |
'sortable' => 1, | |
'default_sort_order' => 'asc', | |
'align' => '', | |
'separator' => '', | |
'empty_column' => 0, | |
), | |
'status' => array( | |
'sortable' => 1, | |
'default_sort_order' => 'asc', | |
'align' => '', | |
'separator' => '', | |
'empty_column' => 0, | |
), | |
'edit_node' => array( | |
'align' => '', | |
'separator' => '', | |
'empty_column' => 0, | |
), | |
); | |
$handler->display->display_options['style_options']['override'] = 1; | |
$handler->display->display_options['style_options']['sticky'] = 0; | |
$handler->display->display_options['style_options']['empty_table'] = 0; | |
/* Relationship: Content: Author */ | |
$handler->display->display_options['relationships']['uid']['id'] = 'uid'; | |
$handler->display->display_options['relationships']['uid']['table'] = 'node'; | |
$handler->display->display_options['relationships']['uid']['field'] = 'uid'; | |
$handler->display->display_options['relationships']['uid']['required'] = 0; | |
/* 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']['alter_text'] = 0; | |
$handler->display->display_options['fields']['title']['alter']['make_link'] = 0; | |
$handler->display->display_options['fields']['title']['alter']['absolute'] = 0; | |
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = 0; | |
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = 0; | |
$handler->display->display_options['fields']['title']['alter']['strip_tags'] = 0; | |
$handler->display->display_options['fields']['title']['alter']['trim'] = 0; | |
$handler->display->display_options['fields']['title']['alter']['html'] = 0; | |
$handler->display->display_options['fields']['title']['hide_empty'] = 0; | |
$handler->display->display_options['fields']['title']['empty_zero'] = 0; | |
$handler->display->display_options['fields']['title']['link_to_node'] = 1; | |
/* Field: Content: Type */ | |
$handler->display->display_options['fields']['type']['id'] = 'type'; | |
$handler->display->display_options['fields']['type']['table'] = 'node'; | |
$handler->display->display_options['fields']['type']['field'] = 'type'; | |
$handler->display->display_options['fields']['type']['alter']['alter_text'] = 0; | |
$handler->display->display_options['fields']['type']['alter']['make_link'] = 0; | |
$handler->display->display_options['fields']['type']['alter']['absolute'] = 0; | |
$handler->display->display_options['fields']['type']['alter']['external'] = 0; | |
$handler->display->display_options['fields']['type']['alter']['replace_spaces'] = 0; | |
$handler->display->display_options['fields']['type']['alter']['trim_whitespace'] = 0; | |
$handler->display->display_options['fields']['type']['alter']['nl2br'] = 0; | |
$handler->display->display_options['fields']['type']['alter']['word_boundary'] = 1; | |
$handler->display->display_options['fields']['type']['alter']['ellipsis'] = 1; | |
$handler->display->display_options['fields']['type']['alter']['strip_tags'] = 0; | |
$handler->display->display_options['fields']['type']['alter']['trim'] = 0; | |
$handler->display->display_options['fields']['type']['alter']['html'] = 0; | |
$handler->display->display_options['fields']['type']['element_label_colon'] = 1; | |
$handler->display->display_options['fields']['type']['element_default_classes'] = 1; | |
$handler->display->display_options['fields']['type']['hide_empty'] = 0; | |
$handler->display->display_options['fields']['type']['empty_zero'] = 0; | |
$handler->display->display_options['fields']['type']['hide_alter_empty'] = 1; | |
$handler->display->display_options['fields']['type']['link_to_node'] = 0; | |
$handler->display->display_options['fields']['type']['machine_name'] = 0; | |
/* Field: User: Name */ | |
$handler->display->display_options['fields']['name']['id'] = 'name'; | |
$handler->display->display_options['fields']['name']['table'] = 'users'; | |
$handler->display->display_options['fields']['name']['field'] = 'name'; | |
$handler->display->display_options['fields']['name']['relationship'] = 'uid'; | |
$handler->display->display_options['fields']['name']['label'] = 'Author'; | |
$handler->display->display_options['fields']['name']['alter']['alter_text'] = 0; | |
$handler->display->display_options['fields']['name']['alter']['make_link'] = 0; | |
$handler->display->display_options['fields']['name']['alter']['absolute'] = 0; | |
$handler->display->display_options['fields']['name']['alter']['external'] = 0; | |
$handler->display->display_options['fields']['name']['alter']['replace_spaces'] = 0; | |
$handler->display->display_options['fields']['name']['alter']['trim_whitespace'] = 0; | |
$handler->display->display_options['fields']['name']['alter']['nl2br'] = 0; | |
$handler->display->display_options['fields']['name']['alter']['word_boundary'] = 1; | |
$handler->display->display_options['fields']['name']['alter']['ellipsis'] = 1; | |
$handler->display->display_options['fields']['name']['alter']['strip_tags'] = 0; | |
$handler->display->display_options['fields']['name']['alter']['trim'] = 0; | |
$handler->display->display_options['fields']['name']['alter']['html'] = 0; | |
$handler->display->display_options['fields']['name']['element_label_colon'] = 1; | |
$handler->display->display_options['fields']['name']['element_default_classes'] = 1; | |
$handler->display->display_options['fields']['name']['hide_empty'] = 0; | |
$handler->display->display_options['fields']['name']['empty_zero'] = 0; | |
$handler->display->display_options['fields']['name']['hide_alter_empty'] = 1; | |
$handler->display->display_options['fields']['name']['link_to_user'] = 1; | |
$handler->display->display_options['fields']['name']['overwrite_anonymous'] = 0; | |
$handler->display->display_options['fields']['name']['format_username'] = 1; | |
/* Field: Content: Post date */ | |
$handler->display->display_options['fields']['created']['id'] = 'created'; | |
$handler->display->display_options['fields']['created']['table'] = 'node'; | |
$handler->display->display_options['fields']['created']['field'] = 'created'; | |
$handler->display->display_options['fields']['created']['alter']['alter_text'] = 0; | |
$handler->display->display_options['fields']['created']['alter']['make_link'] = 0; | |
$handler->display->display_options['fields']['created']['alter']['absolute'] = 0; | |
$handler->display->display_options['fields']['created']['alter']['external'] = 0; | |
$handler->display->display_options['fields']['created']['alter']['replace_spaces'] = 0; | |
$handler->display->display_options['fields']['created']['alter']['trim_whitespace'] = 0; | |
$handler->display->display_options['fields']['created']['alter']['nl2br'] = 0; | |
$handler->display->display_options['fields']['created']['alter']['word_boundary'] = 1; | |
$handler->display->display_options['fields']['created']['alter']['ellipsis'] = 1; | |
$handler->display->display_options['fields']['created']['alter']['strip_tags'] = 0; | |
$handler->display->display_options['fields']['created']['alter']['trim'] = 0; | |
$handler->display->display_options['fields']['created']['alter']['html'] = 0; | |
$handler->display->display_options['fields']['created']['element_label_colon'] = 1; | |
$handler->display->display_options['fields']['created']['element_default_classes'] = 1; | |
$handler->display->display_options['fields']['created']['hide_empty'] = 0; | |
$handler->display->display_options['fields']['created']['empty_zero'] = 0; | |
$handler->display->display_options['fields']['created']['hide_alter_empty'] = 1; | |
$handler->display->display_options['fields']['created']['date_format'] = 'short'; | |
/* Field: Content: Published */ | |
$handler->display->display_options['fields']['status']['id'] = 'status'; | |
$handler->display->display_options['fields']['status']['table'] = 'node'; | |
$handler->display->display_options['fields']['status']['field'] = 'status'; | |
$handler->display->display_options['fields']['status']['alter']['alter_text'] = 0; | |
$handler->display->display_options['fields']['status']['alter']['make_link'] = 0; | |
$handler->display->display_options['fields']['status']['alter']['absolute'] = 0; | |
$handler->display->display_options['fields']['status']['alter']['external'] = 0; | |
$handler->display->display_options['fields']['status']['alter']['replace_spaces'] = 0; | |
$handler->display->display_options['fields']['status']['alter']['trim_whitespace'] = 0; | |
$handler->display->display_options['fields']['status']['alter']['nl2br'] = 0; | |
$handler->display->display_options['fields']['status']['alter']['word_boundary'] = 1; | |
$handler->display->display_options['fields']['status']['alter']['ellipsis'] = 1; | |
$handler->display->display_options['fields']['status']['alter']['strip_tags'] = 0; | |
$handler->display->display_options['fields']['status']['alter']['trim'] = 0; | |
$handler->display->display_options['fields']['status']['alter']['html'] = 0; | |
$handler->display->display_options['fields']['status']['element_label_colon'] = 1; | |
$handler->display->display_options['fields']['status']['element_default_classes'] = 1; | |
$handler->display->display_options['fields']['status']['hide_empty'] = 0; | |
$handler->display->display_options['fields']['status']['empty_zero'] = 0; | |
$handler->display->display_options['fields']['status']['hide_alter_empty'] = 1; | |
$handler->display->display_options['fields']['status']['not'] = 0; | |
/* Field: Content: Edit link */ | |
$handler->display->display_options['fields']['edit_node']['id'] = 'edit_node'; | |
$handler->display->display_options['fields']['edit_node']['table'] = 'views_entity_node'; | |
$handler->display->display_options['fields']['edit_node']['field'] = 'edit_node'; | |
$handler->display->display_options['fields']['edit_node']['alter']['alter_text'] = 0; | |
$handler->display->display_options['fields']['edit_node']['alter']['make_link'] = 0; | |
$handler->display->display_options['fields']['edit_node']['alter']['absolute'] = 0; | |
$handler->display->display_options['fields']['edit_node']['alter']['replace_spaces'] = 0; | |
$handler->display->display_options['fields']['edit_node']['alter']['trim_whitespace'] = 0; | |
$handler->display->display_options['fields']['edit_node']['alter']['nl2br'] = 0; | |
$handler->display->display_options['fields']['edit_node']['alter']['word_boundary'] = 1; | |
$handler->display->display_options['fields']['edit_node']['alter']['ellipsis'] = 1; | |
$handler->display->display_options['fields']['edit_node']['alter']['strip_tags'] = 0; | |
$handler->display->display_options['fields']['edit_node']['alter']['trim'] = 0; | |
$handler->display->display_options['fields']['edit_node']['alter']['html'] = 0; | |
$handler->display->display_options['fields']['edit_node']['element_label_colon'] = 1; | |
$handler->display->display_options['fields']['edit_node']['element_default_classes'] = 1; | |
$handler->display->display_options['fields']['edit_node']['hide_empty'] = 0; | |
$handler->display->display_options['fields']['edit_node']['empty_zero'] = 0; | |
$handler->display->display_options['fields']['edit_node']['hide_alter_empty'] = 1; | |
/* 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'; | |
$handler->display->display_options['sorts']['created']['expose']['label'] = 'Post date'; | |
/* 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'] = 0; | |
$handler->display->display_options['filters']['status']['exposed'] = TRUE; | |
$handler->display->display_options['filters']['status']['expose']['operator_id'] = ''; | |
$handler->display->display_options['filters']['status']['expose']['label'] = 'Published'; | |
$handler->display->display_options['filters']['status']['expose']['use_operator'] = FALSE; | |
$handler->display->display_options['filters']['status']['expose']['operator'] = 'status_op'; | |
$handler->display->display_options['filters']['status']['expose']['identifier'] = 'status'; | |
$handler->display->display_options['filters']['status']['expose']['required'] = 1; | |
$handler->display->display_options['filters']['status']['expose']['multiple'] = FALSE; | |
/* Filter criterion: Content: Title */ | |
$handler->display->display_options['filters']['title']['id'] = 'title'; | |
$handler->display->display_options['filters']['title']['table'] = 'node'; | |
$handler->display->display_options['filters']['title']['field'] = 'title'; | |
$handler->display->display_options['filters']['title']['operator'] = 'contains'; | |
$handler->display->display_options['filters']['title']['exposed'] = TRUE; | |
$handler->display->display_options['filters']['title']['expose']['operator_id'] = 'title_op'; | |
$handler->display->display_options['filters']['title']['expose']['label'] = 'Title'; | |
$handler->display->display_options['filters']['title']['expose']['operator'] = 'title_op'; | |
$handler->display->display_options['filters']['title']['expose']['identifier'] = 'title'; | |
$handler->display->display_options['filters']['title']['expose']['required'] = 0; | |
$handler->display->display_options['filters']['title']['expose']['multiple'] = FALSE; | |
/* 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']['exposed'] = TRUE; | |
$handler->display->display_options['filters']['type']['expose']['operator_id'] = 'type_op'; | |
$handler->display->display_options['filters']['type']['expose']['label'] = 'Type'; | |
$handler->display->display_options['filters']['type']['expose']['use_operator'] = 1; | |
$handler->display->display_options['filters']['type']['expose']['operator'] = 'type_op'; | |
$handler->display->display_options['filters']['type']['expose']['identifier'] = 'type'; | |
$handler->display->display_options['filters']['type']['expose']['multiple'] = 1; | |
$handler->display->display_options['filters']['type']['expose']['reduce'] = 0; | |
/* Filter criterion: User: Name */ | |
$handler->display->display_options['filters']['uid']['id'] = 'uid'; | |
$handler->display->display_options['filters']['uid']['table'] = 'users'; | |
$handler->display->display_options['filters']['uid']['field'] = 'uid'; | |
$handler->display->display_options['filters']['uid']['relationship'] = 'uid'; | |
$handler->display->display_options['filters']['uid']['value'] = ''; | |
$handler->display->display_options['filters']['uid']['exposed'] = TRUE; | |
$handler->display->display_options['filters']['uid']['expose']['operator_id'] = 'uid_op'; | |
$handler->display->display_options['filters']['uid']['expose']['label'] = 'Author'; | |
$handler->display->display_options['filters']['uid']['expose']['use_operator'] = 1; | |
$handler->display->display_options['filters']['uid']['expose']['operator'] = 'uid_op'; | |
$handler->display->display_options['filters']['uid']['expose']['identifier'] = 'uid'; | |
$handler->display->display_options['filters']['uid']['expose']['multiple'] = FALSE; | |
$handler->display->display_options['filters']['uid']['expose']['reduce'] = 0; | |
/* Display: Page */ | |
$handler = $view->new_display('page', 'Page', 'page'); | |
$handler->display->display_options['path'] = 'admin/content-advanced'; | |
$handler->display->display_options['menu']['type'] = 'normal'; | |
$handler->display->display_options['menu']['title'] = 'Content Advanced'; | |
$handler->display->display_options['menu']['weight'] = '0'; | |
$handler->display->display_options['menu']['name'] = 'management'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment