Hi,

I'm getting started with Drupal and VideoJS module. I wonder how can I add a video into a block ?

Thanks

Comments

VM’s picture

Status: Active » Closed (fixed)

there are multiple modules that put drupal content into blocks including but not limited to video fields.

one method would be to create a view with a block display, using the views.module.
Another possibility = http://drupal.org/project/nodesinblock
and yet another = http://drupal.org/project/nodeblock

I'd venture a guess there are more options and ultimately further detail is difficult because the devil lives in the details you've not given.

arisaves’s picture

I tried using the method you had described with views, by adding the node:body field, as well as the drop-down options for that were available for content. I couldn't get the video to display -- I haven't investigated but I feel like the instance of the video player might live somewhere outside of the node's body section. I am going to try the other two modules & report back.

VM’s picture

it does live outside the node body
it lives in the filefield you used to upload the video

arisaves’s picture

Nodeblock worked beautifully. Easy to implement.

As a heads up to D6 beginners who may need to do this in the future,
some things I got briefly snagged on:

- Make sure to mark your content as published [if testing visibility to anonymous users]
- In Permissions, set the appropriate permissions for "view field_upload_video "
- You may need to apply additional css classes to style or position your block. I have the Skinr module installed and enabled, so I edited the skinr node settings in my content type and applied an additional css class under "advanced options" (someone correct me if there is a neater & more intuitive way to do this)

VM’s picture

And a note that the same snags would likely apply to D7 as well. (Since this issue is tagged D7)