Adding video to a content type

In this recipe we will see how to create a Video content type that has a field for embedding videos. Creating a content type, which can deal specifically with embedded content, is far more powerful than simply pasting a video embed code into the Body field. By having a specific Video field, you can have complete control over the display and positioning of the video, and a greater deal of control over its content and format.

The resulting video display of this recipe is as follows:

Adding video to a content type

Getting ready

For this recipe you will need to install the most recent recommended releases of the following modules:

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.