Problem With Embedding You Tube

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Stephq1001
New Member
New Member
Posts: 6
Joined: Mon Oct 15, 2012 2:19 pm

Problem With Embedding You Tube

Post by Stephq1001 »

Hi I am looking for some help. I am trying to embed a You Tube video onto my CMSMS site.

My process has been, source the video, copy code and embed on site.

I have managed to get the video to display on a content page type, but not on an item page type. Is the code not supported on item pages?

I am wrapping my code in literal tags, so

{literal}
<__iframe width="560" height="315" src="http://www.youtube.com/embed/11s9b-P_oLk" frameborder="0" allowfullscreen></__iframe>
{/literal} and using the content block code on the actual WYSIWYG editor.

As I say I have no problems when installed on a content page, just the item pages (where I need it to display)
mrenigma
Forum Members
Forum Members
Posts: 48
Joined: Fri Aug 05, 2011 3:43 pm
Location: London, United Kingdom

Re: Problem With Embedding You Tube

Post by mrenigma »

If you are using TinyMCE as your WYSIWYG editor you can go to the TinyMCE settings under "Extensions" and add the following line of code into the "Extra Configuration" under the "Advanced" tab:

Code: Select all

extended_valid_elements : "iframe[marginheight|id|frameborder|scrolling|align|marginwidth|name|id|src|height|width], object[width|height|classid|codebase], param[name|value], embed[src|type|width|height|flashvars|wmode]"
That will allow TinyMCE to show and display iframes, objects and embed tags. If you are using MicroTiny, then I have no idea because I really dislike it and never use it lol
~ Life is like water, every movement you make changes the way it flows ~
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Problem With Embedding You Tube

Post by Dr.CSS »

Using {literal} some code {/literal} is only needed if your code contains { } in it...

Be careful of adding youtube directly into the wysiwyg, I use GCB that have the wysiwyg turned of then call the GCB in the page content...
Post Reply

Return to “Modules/Add-Ons”