Hello All,
I'm almost bald but today i'm getting so frustrated I guess i won't have any hear left on the end of this day. I hope one of you people can help me out (with the following question):
I have a Content Type Slider, with Multiple Image Fields AND Mutliple Text fields.
I want to create a Slider that show 1 image and 1 text field.
I now get the same image two times?
(*I get image1 with text1 and then i get image1 with text2)
But what i want to have is: image1 with text1 and then image2 with text2
I guess i most be doing something wrong with "Relationships" ?
Yes i unchecked "Group multiple values" for both fields (Text and Image)
Or is this not possible?
So i did the following:
$view = new view;
$view->name = 'slider';
$view->description = 'slider';
$view->tag = 'slider';
$view->base_table = 'node';
$view->core = 6;
$view->api_version = '2';
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('relationships', array(
'field_images_slider_fid' => array(
'label' => 'Images',
'required' => 0,
'delta' => '0',
'id' => 'field_images_slider_fid',
'table' => 'node_data_field_images_slider',
'field' => 'field_images_slider_fid',
'relationship' => 'none',
),
));
$handler->override_option('fields', array(
'field_images_slider_fid' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'absolute' => 0,
'link_class' => '',
'alt' => '',
'rel' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'hide_alter_empty' => 1,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'image_plain',
'multiple' => array(
'group' => 0,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => 0,
),
'exclude' => 0,
'id' => 'field_images_slider_fid',
'table' => 'node_data_field_images_slider',
'field' => 'field_images_slider_fid',
'relationship' => 'field_images_slider_fid',
),
'field_tex_slider_value' => array(
'label' => '',
'alter' => array(
'alter_text' => 0,
'text' => '',
'make_link' => 0,
'path' => '',
'absolute' => 0,
'link_class' => '',
'alt' => '',
'rel' => '',
'prefix' => '',
'suffix' => '',
'target' => '',
'help' => '',
'trim' => 0,
'max_length' => '',
'word_boundary' => 1,
'ellipsis' => 1,
'html' => 0,
'strip_tags' => 0,
),
'empty' => '',
'hide_empty' => 0,
'empty_zero' => 0,
'hide_alter_empty' => 1,
'link_to_node' => 0,
'label_type' => 'none',
'format' => 'default',
'multiple' => array(
'group' => 0,
'multiple_number' => '',
'multiple_from' => '',
'multiple_reversed' => 0,
),
'exclude' => 0,
'id' => 'field_tex_slider_value',
'table' => 'node_data_field_tex_slider',
'field' => 'field_tex_slider_value',
'override' => array(
'button' => 'Override',
),
'relationship' => 'none',
),
));
$handler->override_option('filters', array(
'type' => array(
'operator' => 'in',
'value' => array(
'slider' => 'slider',
),
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('cache', array(
'type' => 'none',
));
$handler->override_option('items_per_page', 7);
$handler->override_option('style_plugin', 'slideshow');
$handler->override_option('style_options', array(
'type' => 'ul',
'mode' => 'views_slideshow_singleframe',
'views_slideshow_singleframe-prefix' => '',
'views_slideshow_singleframe' => array(
'timeout' => '5000',
'delay' => '0',
'speed' => '700',
'start_paused' => 0,
'fixed_height' => '0',
'random' => '0',
'pause' => '2',
'pause_on_click' => '0',
'pause_when_hidden' => 0,
'pause_when_hidden_type' => 'full',
'amount_allowed_visible' => '',
'remember_slide' => 1,
'remember_slide_days' => '1',
'controls' => '2',
'pager' => '2',
'pager_type' => 'Numbered',
'pager_hover' => '2',
'pager_click_to_page' => 0,
'image_count' => '0',
'items_per_slide' => '1',
'effect' => 'scrollHorz',
'sync' => '1',
'nowrap' => '0',
'advanced' => '',
'ie' => array(
'cleartype' => 'true',
'cleartypenobg' => 'false',
),
),
));
$handler->override_option('row_options', array(
'inline' => array(
'field_images_slider_fid' => 'field_images_slider_fid',
'field_images_slider_data_1' => 'field_images_slider_data_1',
'field_images_slider_data' => 'field_images_slider_data',
'field_tex_slider_value' => 'field_tex_slider_value',
),
'separator' => '',
'hide_empty' => 0,
));
$handler = $view->new_display('block', 'Block', 'block_1');
$handler->override_option('block_description', '');
$handler->override_option('block_caching', -1);
$handler = $view->new_display('page', 'Page', 'page_1');
$handler->override_option('path', 'test/slider');
$handler->override_option('menu', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
$handler->override_option('tab_options', array(
'type' => 'none',
'title' => '',
'description' => '',
'weight' => 0,
'name' => 'navigation',
));
But the issue is, i now get
Comments
Comment #1
janton CreditAttribution: janton commentedhelp? anybody experienced in this?
Comment #1.0
janton CreditAttribution: janton commentedblur
Comment #2
NickDickinsonWildeSupport for Views Slideshow 6.x is mostly deprecated (ie bug fixes and major errors may be looked at and security issues, but not really anything else), so closing.