Apple’s Teams Wiki Server supports very few HTML tags out of the box, in order to keep things simple. But, like Any Good Unix Ought To, Mac OS X Server gives you the ability to manipulated things, 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 your administrator’s password. If you don’t know what it is, you probably have no good reason to be doing this stuff any way.
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> </array> <key>styles</key> <array> <string>font-size</string> </array> <key>tags</key> <dict> <key>object</key> <array> <string>width</string> <string>height</string> </array> <key>param</key> <array> <string>name</string> <string>value</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> </dict> </dict> </plist>
Now, press “Return” on your keyboard.
Next, 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
Pingback: Posts about Apple Macbooks as of January 21, 2009
Hey Chris, just the job – thanks. I only just know the Administrator’s password 🙂 but as an aging wannabe ServerMeister I just can’t resist pushing the xgrid.
Thanks again, Norman