Adding video to Drupal posts the simple and valid way

14 Jun 2008
Posted by joshb

I've been on a bit of a video binge lately posting several videos from YouTube here. This can be done several ways, including using the code supplied by video sites such as YouTube. The problem for someone who wants to keep their HTML valid is that YouTube posts the video snippet using <embed> tags which aren't valid HTML. However, like it does for many things, Drupal provides an easy solution. The video filter module makes it easy to put a [ video:URL] style tag in a post and have the video embedded. And best of all it does so cleanly with valid <object> tags.

It's worth noting there are several other modules like the embeded media field that can make the process work in other ways if one is developing CCK types and wants to include videos. So if you're looking for a solution that does even more be sure to check these out.

0
Your rating: None

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Link to Amazon products with: [amazon product_id inline|full|thumbnail]. Example: [amazon 1590597559 thumbnail]
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You may insert videos with [video:URL]
  • Use [fn]...[/fn] (or <fn>...</fn>) to insert automatically numbered footnotes.
  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul><p> <img> <table> <tr> <td><strong><em><sup><div><fn><h1><h2><h3><h4><blockquote><img style="">
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically. (Better URL filter.)

More information about formatting options

 
 
 

Live from twitter...

  • @emaildiva Yes I've got it on a few sites that aren't yet public and it's a really well put together theme.
  • @emaildiva In looking for good Drupal themes might check out this recent post on Acquia Marina. Lots it can do. http://bit.ly/1rYxLH
  • @dancourse best Drupal book is relative to what you're trying to do....
  • It's funny that we can name boys with their father's names but for some reason Sarah Jr. doesn't get real consideration??