Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $view = new view();
- $view->name = 'daughter_category';
- $view->description = '';
- $view->tag = 'default';
- $view->base_table = 'taxonomy_term_data';
- $view->human_name = 'Дочерние категории';
- $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'] = 'grid';
- $handler->display->display_options['row_plugin'] = 'fields';
- /* Relationship: Taxonomy term: Parent term */
- $handler->display->display_options['relationships']['parent']['id'] = 'parent';
- $handler->display->display_options['relationships']['parent']['table'] = 'taxonomy_term_hierarchy';
- $handler->display->display_options['relationships']['parent']['field'] = 'parent';
- $handler->display->display_options['relationships']['parent']['required'] = TRUE;
- /* Field: Taxonomy term: Name */
- $handler->display->display_options['fields']['name']['id'] = 'name';
- $handler->display->display_options['fields']['name']['table'] = 'taxonomy_term_data';
- $handler->display->display_options['fields']['name']['field'] = 'name';
- $handler->display->display_options['fields']['name']['label'] = '';
- $handler->display->display_options['fields']['name']['alter']['word_boundary'] = FALSE;
- $handler->display->display_options['fields']['name']['alter']['ellipsis'] = FALSE;
- $handler->display->display_options['fields']['name']['link_to_taxonomy'] = TRUE;
- /* Contextual filter: Taxonomy term: Term ID */
- $handler->display->display_options['arguments']['tid']['id'] = 'tid';
- $handler->display->display_options['arguments']['tid']['table'] = 'taxonomy_term_data';
- $handler->display->display_options['arguments']['tid']['field'] = 'tid';
- $handler->display->display_options['arguments']['tid']['relationship'] = 'parent';
- $handler->display->display_options['arguments']['tid']['default_action'] = 'default';
- $handler->display->display_options['arguments']['tid']['default_argument_type'] = 'taxonomy_tid';
- $handler->display->display_options['arguments']['tid']['summary']['number_of_records'] = '0';
- $handler->display->display_options['arguments']['tid']['summary']['format'] = 'default_summary';
- $handler->display->display_options['arguments']['tid']['summary_options']['items_per_page'] = '25';
- /* Filter criterion: Taxonomy vocabulary: Machine name */
- $handler->display->display_options['filters']['machine_name']['id'] = 'machine_name';
- $handler->display->display_options['filters']['machine_name']['table'] = 'taxonomy_vocabulary';
- $handler->display->display_options['filters']['machine_name']['field'] = 'machine_name';
- $handler->display->display_options['filters']['machine_name']['value'] = array(
- 'category_catalog' => 'category_catalog',
- );
- /* Filter criterion: Taxonomy term: Parent term */
- $handler->display->display_options['filters']['parent']['id'] = 'parent';
- $handler->display->display_options['filters']['parent']['table'] = 'taxonomy_term_hierarchy';
- $handler->display->display_options['filters']['parent']['field'] = 'parent';
- /* Display: Content pane */
- $handler = $view->new_display('panel_pane', 'Content pane', 'panel_pane_1');
- $translatables['daughter_category'] = array(
- t('Master'),
- 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('Parent'),
- t('All'),
- t('Content pane'),
- t('View panes'),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement