When you configure a view on the video content type and choose for the "View Type" "Full Nodes" the nodes aren't displayed in the same way that they are when you view only the single node.

I've got my settings to display the movie in the node but it doesn't do this in the view.

CommentFileSizeAuthor
#3 video.fullnodes.patch505 bytesmariano.barcia

Comments

jax’s picture

It seems that

function video_view(&$node, $teaser = FALSE, $page = FALSE)

gets teaser = false and page = false in a full node view. And because there is a if($page) it doesn't show the full node. Most other modules do if($teaser) so this works correctly in the case of a full node view. I'm opening an issue against views to find out if this is the way it should work.

jax’s picture

If you read the hook_view documentation at http://api.drupal.org/api/function/hook_view/5 it says that you should user $teaser to determine if you should display the teaser or the whole node. The $page argument serves other purposes.

In video.module the is an if($page) to determine if the full node should be rendered or not, that is not currect IMO. But only changing that isn't possible either because there are drupal_set_titles() further on which messes up the view title. I'll try to suggest a patch.

mariano.barcia’s picture

StatusFileSize
new505 bytes

Patch attached

azoho’s picture

Is there a solution to this for Drupal 6 video module?

iLLin’s picture

Status: Active » Closed (fixed)