Tags

Apple Wiki Server: Enable Embeded iFrame in OS 10.6 Server

Comments

Apple’s Teams Wiki Server supports very few HTML tags out of the box, in order to keep things simple. But Mac OS X Server gives you the ability to manipulate settings, such as adding iframe, embed, param, and object tags to the Wiki/Blog server. Here’s how:

First, navigate to the WikiServer directory:

cd /Library/Application\ Support/Apple/WikiServer/

Then, create a plist file with the following XML:

sudo tee whitelist.plist

Enter administrator’s password.

Now, copy and paste this in:

<?xml version="1.0" encoding="UTF-8"?>

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

<plist version="1.0">

<dict>

<key>protocols</key>

<array/>

<key>styles</key>

<array>

<string>font-size</string>

</array>

<key>tags</key>

<dict>

<key>a</key>

<array>

<string>target</string>

</array>



<key>embed</key>

<array>

<string>src</string>

<string>type</string>

<string>allowscriptaccess</string>

<string>allowfullscreen</string>

<string>width</string>

<string>height</string>

</array>

<key>iframe</key>

<array>

<string>src</string>

<string>width</string>

<string>height</string>

<string>frameborder</string>

<string>scrolling</string>

<string>marginheight</string>

<string>marginwidth</string>

</array>

<key>object</key>

<array>

<string>width</string>

<string>height</string>

</array>

<key>param</key>

<array>

<string>name</string>

<string>value</string>

</array>

</dict>

</dict>

</plist>


Press “Return” on your keyboard.

Press CTRL-D to close the file.

Check that the file was properly written:

echo whitelist.plist

It should output the exact XML data from above.

Stop the WikiServer:

sudo serveradmin stop teams

Start the WikiServer:

sudo serveradmin start teams