O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required