Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Want to play youtube videos

0 views
Skip to first unread message

Ashutosh Kachot

unread,
Nov 17, 2009, 5:51:01 AM11/17/09
to
Hi Stefan,

YouTube generates a piece of code to allow you to insert it in your CMS
template, resulting in a special window for playing videos.
this does not work in CMS.
can you plz help me for work it out.

Here is an example piece of code for a YouTube video:
<object width="425" height="344"><param name="movie"
value="http://www.youtube.com/v/Dxdpq1lZkTs&hl=en&fs=1&"></param><param
name="allowFullScreen" value="true"></param><param name="allowscriptaccess"
value="always"></param><embed
src="http://www.youtube.com/v/Dxdpq1lZkTs&hl=en&fs=1&"
type="application/x-shockwave-flash" allowscriptaccess="always"
allowfullscreen="true" width="425" height="344"></embed></object>

Regards,
Kachot

George Leithead

unread,
Nov 17, 2009, 6:42:30 AM11/17/09
to
On Nov 17, 10:51 am, Ashutosh Kachot

That will be because the object and embed tags are prohibited and
stripped from the content. You either need to change the authoring
scripts to allow these potentially dangerous tags from being stripped,
OR you encode the tags when saving and when rendering you re-encode
these tags back to their originals.

Ashutosh Kachot

unread,
Nov 18, 2009, 3:54:05 AM11/18/09
to
Hi George,
Many thanks for reply, but unfortunatelly, I am unable to figure out the
solution. My requirment is to attach Youtube video on the CMS page. As we
attach Youtube video on Facebook page. It should not be a link.

I will appreciate any prompt help.

Thanks & Regards,
Ashutosh Kachot

"George Leithead" wrote:

> .
>

George Leithead

unread,
Nov 18, 2009, 8:55:00 AM11/18/09
to
On Nov 18, 8:54 am, Ashutosh Kachot
> > .- Hide quoted text -
>
> - Show quoted text -

Try searching the CMS virtual folder contents for any file that
contains the word "object" or "embed". This might be able to point
you in the right direction.

Stefan Goßner [MSFT]

unread,
Dec 10, 2009, 4:34:39 AM12/10/09
to
Hi Ashutosh,

the recommended way to do this is to write a custom placeholder control that
takes the URL to the video as input and then renders the object tag.

Cheers,
Stefan

"Ashutosh Kachot" <Ashutos...@discussions.microsoft.com> wrote in
message news:4880FF09-336F-489C...@microsoft.com...

stevekgoodwin

unread,
Dec 16, 2009, 12:35:20 AM12/16/09
to
If you use MCMS Manager you can use the HTML editor there to inject
the required code. However, the object will disappear next time you
save the page in the CMS. If your site uses the free Telerik edit
controls you will also need to replace < and > with ~LT~ and ~GT~.

You could write some javascript to create the HTML object dynamically
(you would probably need to modify/create a new template to pull this
off).

You could create a new template that has the required HTML on
the .aspx page directly.

**DO NOT DO THIS, YOU MAY BREAK YOUR WEBSITE**
You could edit the HTML directly in the CMS database
**DO NOT DO THIS, YOU MAY BREAK YOUR WEBSITE**

Or the other suggestions from Stefan and George.

On Dec 10, 8:34 pm, Stefan Goßner [MSFT]


<stef...@online.microsoft.com> wrote:
> Hi Ashutosh,
>
> the recommended way to do this is to write a custom placeholder control that
> takes the URL to the video as input and then renders the object tag.
>
> Cheers,
> Stefan
>

> "Ashutosh Kachot" <AshutoshKac...@discussions.microsoft.com> wrote in
> messagenews:4880FF09-336F-489C...@microsoft.com...

0 new messages