Hi. I'm a long time Drupal user at okiefunk.com, and I just recently had a tech company update my site to Drupal 7. I have many, many issues (or maybe just a lack of knowledge when it comes to Drupal 7), some of which I think might be simple to resolve. I'm a college professor and a content developer more than a backend guy with a lot of code knowledge. I'm using the City Magazine theme. I need to know how to just basically upload YouTube videos and embed Tweets in my blog posts. This is so easy in WordPress that I just have to believe there's something very simple I'm missing, but I've been trying for a few weeks now, and I can find the answer. I'm using full html, and I go back and forth between rich text and source, which just turns my blog textbox into code mush. I have many other issues as well. Thanks for any help you can give me on these two issues.

Comments

dochoc created an issue. See original summary.

dochoc’s picture

I finally got the embedded YouTube videos and tweets to show after much trial and error with the rich text/plain text/full html settings on my site. They still don't show up correctly in the blog preview, however, or at least for now. If someone has a simple method to do this and knows how to get the embeds to show in a preview, I would like to know. Not to come off as a big complainer, but it should be a lot easier than this for something so simple. I just want to paste in the embed code around my text, preview it and publish.

lhuria94’s picture

Hi

I believe you are using this Media Youtube module to embed youtube videos in a field(/admin/structure/types/manage/blog/fields).

If you have done this already, then go to /admin/structure/types/manage/blog/display and check if you field is visible or not in display settings.

There are few other things you can check for file preview make the required configuration:

  • /admin/config/media/file-types/manage/video/display/media_preview
  • /admin/config/media/file-types/manage/video/file-display/media_preview

Thanks

dochoc’s picture

Thanks for your response. I've downloaded the Media YouTube module, but I'm not using it because I simply can't figure it out yet. I have made the YouTube file visible under blog/display, but it doesn't help me. This is what I'm doing: I've disabled the rich text button. I then paste in the YouTube embed iframe code under plain text. I then try to preview under full html, and all I get is an empty box with IFRAME in the middle of it. When I save the blog file, the video does appears, but it doesn't appear in the preview. The same holds true for tweets as well. It's better than nothing I guess.

I've yet to find "file-types" under config/media to which you refer on the preview issue. Under admin/config/media I have access to file system, image styles, IMCE, YouTube settings, and image toolkit.

malcomio’s picture

Title: New To Drupal 7 » Display videos in node preview
Project: Drupal core » Media: YouTube
Version: 7.0 » 7.x-3.x-dev
Component: blog.module » Code
Assigned: dochoc » Unassigned

Hi - not sure about getting the videos to show in the preview - I generally never bother with previews in Drupal, but I do have a related suggestion - if you're looking to include videos inside a body field, I'd recommend using the Video Filter module. This provides functionality quite similar to Wordpress shortcodes.

apaderno’s picture

Issue tags: -Embed YouTube, -Tweets in Drupal 7