Friday, September 4, 2009

Including a YouTube video in ExpressionEngine articles

Following blogs are details of including a YouTube video in articles of EE. The video should be displayed instead of the usual image, i.e. on the top left of the article OR any other position where you want to set.

References
http://expressionengine.com/wiki/Embedding_YouTube_movies/
http://expressionengine.com/wiki/Embedding_YouTube_Movies_w_Reusable_Template/

This is the template used to display the articles in the following format:

















We have to update this as follows with following features:-



• Width of 230px.
• Height proportional as per usual proportions of YouTube videos.
• The text should appear around the video, as shown in the image above.






Solution :-
1. We first include a new field as "Video_Name" for the weblog to enter the YouTube Video link.
2. Prepare a Blog with a youtube video link such as http://www.youtube.com/watch?v=T70xKdjuK8A
3. Save the blog.
4. Open the template who is responsible to show the article details.
5. Use this following code:-


No comments:

Post a Comment