Quantcast
Channel: Teition Solutions »» Category » Drupal
Viewing all articles
Browse latest Browse all 7

Embedding Videos into a Drupal Page

$
0
0

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.


Viewing all articles
Browse latest Browse all 7

Trending Articles