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.


  1. fat loss for idiots May 30, 2011 5:22 am  Reply

    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..

    • ned June 2, 2011 6:02 am  Reply

      nope, I’ve edited and modified this blog myself. see our web development for more info.

  2. motorcycle cup holder June 6, 2011 2:57 am  Reply

    Excellent read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that: Thanks for lunch!

  3. rtyecript August 21, 2011 2:33 pm  Reply

    I really liked the article, and the very cool blog

    • ned September 2, 2011 11:56 am  Reply

      Thank you, I hope it helps you out 🙂

  4. ned September 2, 2011 11:53 am  Reply

    Thank you kindly for the love 🙂

Leave a Reply

20 + 12 =