YouTube Links disapear after saving page Options
Jose Malone
Posted: Monday, January 28, 2008 6:58:38 PM

Rank: Devotee

Joined: 9/8/2006
Posts: 88
Location: Northern California
This is strange. I have a bunch of pages I had posted that have YouTube video links posted that worked great. Not sure if they were there on v2, but now with V3.01 I've gone in an edited a couple of pages, but as soon as I save the page the link disapear. What gives?

Sincerely,

Jose
kalpa
Posted: Monday, January 28, 2008 9:31:42 PM

Rank: Fanatic

Joined: 7/19/2006
Posts: 492
Location: Göteborg, Sweden
Is it a link as in clickable text or is it actually an embedded YouTube video?

If it is embedded in your page I guess it's just TinyMCE cleaning up "bad tags". I don't remember right now where you change what's bad and not, but it's somewhere in a *.config file. You could also do a little macro that insert the YouTube code, then TinyMCE will leave it alone...

// ; ) Kalle

" - Yeah I'd like to share your point of view, as long as it's my view too... (http://www.d-a-d.dk/lyrics/pointofview)
Jose Malone
Posted: Tuesday, January 29, 2008 1:34:28 AM

Rank: Devotee

Joined: 9/8/2006
Posts: 88
Location: Northern California
It's HTML code I get from YouTube to place the video on the page.

Here's the code.

Code:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/JxhShnqIFBI"></param><embed src="http://www.youtube.com/v/JxhShnqIFBI" type="application/x-shockwave-flash" width="425" height="350"></embed></object>


Thank you.

Jose
drobar
Posted: Tuesday, January 29, 2008 2:57:01 AM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,698
Location: KY, USA
I agree with Kalle, it is probably TinyMCE being a bit too clever. You can try to dumb down TinyMCE by modifying the .config file (see these forum threads for more details on that, as well as the Moxie site)

http://forum.umbraco.org/15559
http://forum.umbraco.org/17906
TinyMCE Docs/Wiki

Or, as Kalle recommended, create a macro that takes a string parameter. That string would be your YouTube-supplied html. The macro's xslt would simply return that string. But since TinyMCE won't interfere with the macro's output, you'll get out exactly what you put in. Not elegant, perhaps, but sure to work.

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
Jose Malone
Posted: Wednesday, January 30, 2008 12:12:34 AM

Rank: Devotee

Joined: 9/8/2006
Posts: 88
Location: Northern California
Well, I've tried unsuccessfully to add the Object or Param file types to the valid markup.

I've tried creating a Macro, but it crashes Umbraco when I do it. Any hints on the proper type of macro this is supposed to be?

Thank you.

Jose
Jose Malone
Posted: Wednesday, January 30, 2008 12:19:48 AM

Rank: Devotee

Joined: 9/8/2006
Posts: 88
Location: Northern California
Sorry, I got distracted and posted a not so complete picture of what is going on.

Creating the Macro is fine. When I place the macro in the content page and enter the URL string and then save the page, it then crashes.

Soon after I place the macro a line appears saying, "No macro content available for WYSIWYG editing."

If I preview I don't see the YouTube video, then if I click save it crashes.

Sorry for the vaugeness before.

Jose
Jose Malone
Posted: Wednesday, January 30, 2008 1:25:17 AM

Rank: Devotee

Joined: 9/8/2006
Posts: 88
Location: Northern California
OK. Found the answer! And I actually got it to work!!!

http://forum.umbraco.org/15797
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.