Embed YouTube in a Drupal 7 Page

If you want to embed adhoc YouTube videos into you Drupal 7 pages, you have several option.

One option is to use the “Embed” option on the YouTube page. This will create an iFrame HTML code that you can paste into your page. You will need to turn off the WYSIWYG filter first to embed raw HTML – and then the video will appear as white block while editing.

Another option is to use the Media module with the YouTube plugin. This will do all sorts of extra stuff like download a screen shot.

However, there are several thnigs you will need to activate inorder to get this working.

  1. Install Media and Media YouTube modules
  2. Add the Media button to your WYSIWYG buttons
  3. Change the Text Filter to format the Media code.

Leave a comment

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