You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do I embed YouTube videos in WIKI and BLOG entries?

How do I get the blogs and wikis to accept embeding code from youtube?


The code below should add the video directly in the blog or wiki entry but it is simply not happening. What am I doing wrong?


<iframe width="480" height="390" src="http://www.youtube.com/embed/MFsmmMTMCHU?rel=0" frameborder="0" allowfullscreen></iframe>


Any help appreciated as usual,


Kind regards

Peter

Posted on Jun 28, 2011 11:22 AM

Reply
Question marked as Top-ranking reply

Posted on Jun 28, 2011 4:58 PM

There's an HTML validator built in to the editor and it will, by default, throw out all but the simplest HTML tags.


The Apple document, Mac OS X Server, Wiki Server Administration V 10.6 explains all the gruesome details. But here's the solution that I use:


Change to the Wiki Server's directory by using

cd /Library/Application\ Support/Apple/WikiServer


If it doesn't exist, create a file called whitelist.plist:

sudo touch whitelist.plist


The file will be owned by root and all members of the _teamserver group. The latter is required for the Wiki service to have access.


Then edit the file with any appropriate editor -- I like vi:

sudo vi whitelist.plist


The file needs to have very specific formatting. This one should get your YouTube embedded HTML working:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

protocols

scp

styles

font-size

tags

object

width

height

param

name

value

embed

src

type

width

height

script

hr

After making changes or additions, save and close the whitelist.plist file then restart the Web service using the Server Admin application.

If you aren't at all familiar with vi, then you may want to instead create a text file on your desktop, put the content into it, then move it to the right location and change its ownership and permissions.


Hope this helps.

2 replies
Question marked as Top-ranking reply

Jun 28, 2011 4:58 PM in response to PeterKjeldsen

There's an HTML validator built in to the editor and it will, by default, throw out all but the simplest HTML tags.


The Apple document, Mac OS X Server, Wiki Server Administration V 10.6 explains all the gruesome details. But here's the solution that I use:


Change to the Wiki Server's directory by using

cd /Library/Application\ Support/Apple/WikiServer


If it doesn't exist, create a file called whitelist.plist:

sudo touch whitelist.plist


The file will be owned by root and all members of the _teamserver group. The latter is required for the Wiki service to have access.


Then edit the file with any appropriate editor -- I like vi:

sudo vi whitelist.plist


The file needs to have very specific formatting. This one should get your YouTube embedded HTML working:

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

protocols

scp

styles

font-size

tags

object

width

height

param

name

value

embed

src

type

width

height

script

hr

After making changes or additions, save and close the whitelist.plist file then restart the Web service using the Server Admin application.

If you aren't at all familiar with vi, then you may want to instead create a text file on your desktop, put the content into it, then move it to the right location and change its ownership and permissions.


Hope this helps.

How do I embed YouTube videos in WIKI and BLOG entries?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.