Is it possible to configure a view that provides a block so the video displays at 300px wide in the block when the default width is 450px in the normal page view.?

Comments

spanders’s picture

Ended up doing this in a custom block instead of a block generated by views. If anyone is looking for a snippet to display "related video" assigned by the related node CCK field, here you go.

if ( is_numeric(arg(1)) ) $this_node = node_load(arg(1));

$relatednid = $this_node->field_relatedvideo[0]['nid'];

if ( $relatednid > 0 ) { 
  $relatednode = node_load($relatednid);
  $vidparams = array();
  $vidparams['width'] = 280;
  $vidparams['height'] = 217;
  $block_content = '<div id="related_video">';
  $block_content .=  flashvideo_get_video($relatednode, $vidparams);
  $block_content .= '</div>';
}

// check to see if there was any content before setting up the block
if ($block_content == '') {
  return;
}
// set up the block
$block['subject'] = 'Related Video';
$block['content'] = $block_content;
return $block;
travist’s picture

Status: Active » Closed (fixed)