Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
create nivo_slider view
$view = new view;
$view->name = 'nivo_slider_images';
$view->description = '';
$view->tag = 'default';
$view->base_table = 'node';
$view->human_name = 'NivoSlider';
$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'] = 'NivoSlider';
$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']['query_comment'] = FALSE;
$handler->display->display_options['exposed_form']['type'] = 'basic';
$handler->display->display_options['pager']['type'] = 'some';
$handler->display->display_options['pager']['options']['items_per_page'] = '5';
$handler->display->display_options['style_plugin'] = 'views_nivo_slider';
$handler->display->display_options['style_options']['nivo_version'] = '3.x';
$handler->display->display_options['style_options']['imagefield_preset'] = 'large';
$handler->display->display_options['style_options']['effect'] = array(
'random' => 'random',
);
$handler->display->display_options['style_options']['controlNavThumbsField'] = 'field_img';
$handler->display->display_options['style_options']['controlNavThumbsIC'] = 'thumbnail';
$handler->display->display_options['row_plugin'] = 'fields';
/* Field: Content: Image */
$handler->display->display_options['fields']['field_img']['id'] = 'field_img';
$handler->display->display_options['fields']['field_img']['table'] = 'field_data_field_img';
$handler->display->display_options['fields']['field_img']['field'] = 'field_img';
$handler->display->display_options['fields']['field_img']['alter']['alter_text'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['make_link'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['absolute'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['external'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['replace_spaces'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['trim_whitespace'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['nl2br'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['word_boundary'] = 1;
$handler->display->display_options['fields']['field_img']['alter']['ellipsis'] = 1;
$handler->display->display_options['fields']['field_img']['alter']['more_link'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['strip_tags'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['trim'] = 0;
$handler->display->display_options['fields']['field_img']['alter']['html'] = 0;
$handler->display->display_options['fields']['field_img']['element_label_colon'] = 1;
$handler->display->display_options['fields']['field_img']['element_default_classes'] = 1;
$handler->display->display_options['fields']['field_img']['hide_empty'] = 0;
$handler->display->display_options['fields']['field_img']['empty_zero'] = 0;
$handler->display->display_options['fields']['field_img']['hide_alter_empty'] = 1;
$handler->display->display_options['fields']['field_img']['click_sort_column'] = 'fid';
$handler->display->display_options['fields']['field_img']['settings'] = array(
'image_style' => 'large',
'image_link' => '',
);
$handler->display->display_options['fields']['field_img']['group_rows'] = 1;
$handler->display->display_options['fields']['field_img']['delta_offset'] = '0';
$handler->display->display_options['fields']['field_img']['delta_reversed'] = 0;
$handler->display->display_options['fields']['field_img']['delta_first_last'] = 0;
$handler->display->display_options['fields']['field_img']['multi_type'] = 'ul';
$handler->display->display_options['fields']['field_img']['field_api_classes'] = 0;
/* 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: Content: Nid */
$handler->display->display_options['arguments']['nid']['id'] = 'nid';
$handler->display->display_options['arguments']['nid']['table'] = 'node';
$handler->display->display_options['arguments']['nid']['field'] = 'nid';
$handler->display->display_options['arguments']['nid']['default_action'] = 'default';
$handler->display->display_options['arguments']['nid']['default_argument_type'] = 'node';
$handler->display->display_options['arguments']['nid']['default_argument_skip_url'] = 0;
$handler->display->display_options['arguments']['nid']['summary']['number_of_records'] = '0';
$handler->display->display_options['arguments']['nid']['summary']['format'] = 'default_summary';
$handler->display->display_options['arguments']['nid']['summary_options']['items_per_page'] = '25';
$handler->display->display_options['arguments']['nid']['break_phrase'] = 0;
$handler->display->display_options['arguments']['nid']['not'] = 0;
/* 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;
/* 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(
'my_ct' => 'my_ct',
);
/* Display: Block */
$handler = $view->new_display('block', 'Block', 'block');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment