Skip to content

Embedding Videos into a Drupal Page

There have been some mention that this feature should be enabled already, but for some of you, when you try and embed a video from google or youtube such as:

<iframe width=”560″ height=”349″ src=”http://www.youtube.com/embed/_4jgUcxMezM” frameborder=”0″ allowfullscreen></iframe>

it just shows up as that on the page. This, obviously isn’t the desired outcome.

Drupal has a module called Googtube. There are instructions on the site, and it appears to only have support up to Drupal 6, with a note “Version 7 does not work for now”. Clearly, one would hope this change, but this isn’t what I ended up using.

What I ended up doing to get it to work was using the already existing Embedded Media Field I had already installed, and just enabled the filter in the PHP page: administer > configuration > input formats > PHP .

I have a few extra modules, but this is what I’ve done:

I then saved this, used the embed code from youtube shown above, and voila, a embedded video.

6 thoughts on “Embedding Videos into a Drupal Page”

  1. I’m extremely impressed with your writing skills as well as with the layout on your blog. Is this a paid theme or did you modify it yourself? Either way keep up the nice quality writing, it is rare to see a great blog like this one these days..

Leave a Reply

Your email address will not be published. Required fields are marked *

two × four =