Hello, I have two kind of slideshow and I want them behave differently, they are shown in different blocks inside the same page and along the website pages. I've tried to override the default configuration putting the following code inside the "Argument Handling Code" of the view which the block belongs to, but nothing happen, the slideshow still behave with the default values.

$view->slideshow['fade'] = 'true'; //instead of default value setted on false
$view->slideshow['fade_speed'] = 'normal'; 
$view->slideshow['fade_value'] = 1;

pleas help me

Comments

d.sibaud’s picture

I add here with the view code: $view = new stdClass(); $view->name = 'banner_home'; $view->description = 'Banner Magic 1985'; $view->access = array ( ); $view->view_args_php = '$view->slideshow[\'fade\'] = true; $view->slideshow[\'fade_speed\'] = \'normal\'; $view->slideshow[\'fade_value\'] = 1;'; $view->page = FALSE; $view->page_title = ''; $view->page_header = ''; $view->page_header_format = '3'; $view->page_footer = ''; $view->page_footer_format = '1'; $view->page_empty = ''; $view->page_empty_format = '1'; $view->page_type = 'node'; $view->url = ''; $view->use_pager = TRUE; $view->nodes_per_page = '10'; $view->block = TRUE; $view->block_title = ''; $view->block_header = ''; $view->block_header_format = '1'; $view->block_footer = ''; $view->block_footer_format = '1'; $view->block_empty = ''; $view->block_empty_format = '1'; $view->block_type = 'slideshow_teaser'; $view->nodes_per_block = '900'; $view->block_more = FALSE; $view->block_use_page_header = FALSE; $view->block_use_page_footer = FALSE; $view->block_use_page_empty = FALSE; $view->sort = array ( ); $view->argument = array ( ); $view->field = array ( ); $view->filter = array ( array ( 'tablename' => 'node', 'field' => 'status', 'operator' => '=', 'options' => '', 'value' => '1', ), array ( 'tablename' => 'term_node', 'field' => 'tid', 'operator' => 'AND', 'options' => '', 'value' => array ( 0 => '13', 1 => '14', 2 => '10', 3 => '11', 4 => '12', ), ), ); $view->exposed_filter = array ( ); $view->requires = array(node, term_node); $views[$view->name] = $view;

redndahead’s picture

Status: Active » Fixed

In 6.x-2.x at least there are ids so you can have different options on the same page.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.