Hi . I would like to use Panels Node override instead of Content Template.

When i put this code into panels, the dash player loads, but the circle in the middle keeps spinning and it never plays anything. It's as if it can't find the video.

$params ['node'] = $node->nid; print dashplayer_get_player( $params );

The code works fine with Content Template, but I would like to use it with Panels.
thanks!

Comments

andraeray’s picture

I found a solution that works in case anyone else is curious.

$node = menu_get_object();
$params ['node'] = $node->nid; print dashplayer_get_player( $params );