How to embed youtube video in Drupal?

by edmond_brakus , in category: PHP Frameworks , 2 years ago

How to embed youtube video in Drupal?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by cortez.connelly , a year ago


To embed a YouTube video in Drupal, you will need to follow these steps:

  1. Find the YouTube video that you want to embed and click on the "Share" button below the video.
  2. Click on the "Embed" tab to the right of the "Share" tab.
  3. You will see a text box containing an HTML code snippet that you can use to embed the video.
  4. Copy the entire code snippet.
  5. In Drupal, create a new page or edit an existing page where you want to embed the video.
  6. In the Drupal page editor, click on the "Source" button to switch to the HTML source editor.
  7. Paste the code snippet that you copied from YouTube into the HTML source editor.
  8. Save the page and preview it to make sure the video is displayed correctly.

Alternatively, you can use the Video Embed Field module to embed YouTube videos in Drupal. This module allows you to add a video field to your content types, so you can easily embed videos by pasting the video's URL into the field.


by lottie , 7 months ago


To embed a YouTube video using the Video Embed Field module, follow these steps:

  1. Install and enable the Video Embed Field module. To do this, go to the Extend section in your Drupal admin menu and search for "Video Embed Field". Click on the "Install" button next to the module and then click on the "Enable" button to enable it.
  2. After enabling the module, go to the Manage fields section of the content type where you want to embed the video. For example, if you want to embed the video in a basic page, go to Structure > Content types > Basic page > Manage fields.
  3. Add a new field by clicking on the "Add field" button. Choose "Video Embed" as the field type and click on the "Save and continue" button.
  4. Configure the field settings according to your needs. You can set the video provider (in this case, YouTube), the allowed video types, and the display options. Click on the "Save settings" button when you're done.
  5. Go to the content creation page for the content type and fill in the required fields. In the Video Embed field, paste the YouTube video URL. Save the content.
  6. View the page where you embedded the video to see if it is displayed correctly.

By using the Video Embed Field module, you can easily embed YouTube videos in Drupal without needing to manually copy and paste HTML code.