Apple Computer Hardware manual To this

Page 24

5For each sidebar that you want to comment out, do the following:

a Add <!-- before the <dict> tag of the sidebar you want to comment out. For sidebars, <dict> tags are followed by the displayName key.

For example, to comment out the “What’s Hot” sidebar, you’d change this:

<dict>

<key>displayName</key> <string>What’s Hot</string>

to this:

<!-- <dict> <key>displayName</key> <string>What’s Hot</string>

bAdd --> after the </dict> tag of the sidebar you want to comment out.

The corresponding </dict> tag is the first one found at the same indentation level of the sidebar’s <dict> tag.

For example, to finish commenting out the “What’s Hot” sidebar, you’d look for the first </dict> tag at the same indentation level as the What’s Hot <dict> tag level, and then you’d change this:

</dict>

to this:

</dict> -->

6If you copied theme.plist to your Documents folder, copy it back to the theme folder.

To copy this file, enter:

$ cp /Users/user_name/Documents/theme.plist theme_name.wikitheme/

7Restart the web service by doing one of the following: ÂÂ Restart the server.

ÂÂ In Server Preferences, click Web, move the slider to Off, and then to On.

ÂÂ In Server Admin, open the disclosure triangle for your server, select Web, click Stop Web, and then click Start Web.

ÂÂ Enter the following in Terminal:

$ sudo serveradmin stop teams; sudo serveradmin start teams;

If prompted, enter your administrator account password.

Restarting the server and stopping and starting web service can disrupt users, so send out a notification that the server will be temporarily down before doing this.

24

Chapter 1    Customizing How the Wiki Looks

Image 24
Contents Mac OS X Server 019-1252/2008-04-24 Contents Managing Wiki Content Getting Additional Information PrefacePreface About This Guide This chapter describes how to customize a wiki’s appearance Theme File Structure OverviewCustomizing How the Wiki Looks Variant Theme File Structure Overview Wireframe Theme File Structure Overview File or Folder Name PurposeBorders, and positioning for comment entry Terminal, enter the following commands Creating a ThemeEditing CSS Files WebsiteEditing Property List Files About Property List EditorAbout Property List Files About Property List Keys and ValuesAbout Strings About DictionariesAbout Errors Here is the sidebars array in a plain text editorHere is an example of an array with a single string Here is an example of an array with multiple stringsChanging General Theme Settings Key Default Value Possible ValuesDescription Creating Sidebars Understanding the Types of SidebarsShared Keys All sidebars require the following keysStatic Unique Keys Each dictionary entry has the following keysKey Example Value Possible Values Optional or Required Search Unique Keys Calendar Unique Keys Overview of the Example Sidebars Tag Unique KeysRecent Activity Unique Keys Sidebar Name DescriptionUsing the Example Sidebars Terminal, enter the following commandTo comment out specific sidebars To this Adding JavaScript and XSL Files To add JavaScript files or XSL files to a themePut JavaScript .js files or XSL .xsl files in this folder About JavaScript Here are some published JavaScript guidesTopic About XSL JavaScript ExampleCreate a plain text file with the following content Viewing Dynamic XMLTo view context $ sudo serveradmin stop teams sudo serveradmin start teams Attributes Creating a Custom Whitelist About the Custom Whitelist’s Structure Allowing Specific URL ProtocolsAllowing Specific CSS Styles Allowing Specific Html Tags and Attributes To allow specific Html tags and attributesTag Attributes About the Built-in Whitelist Protocols Allowed in the Built-in WhitelistBuilt-in whitelist allows these protocols ProtocolCSS Styles Allowed in the Built-in Whitelist Html Tags and Attributes Allowed in the Built-in WhitelistBuilt-in whitelist allows these CSS styles Built-in whitelist allows these Html tags and attributesNode Pre Cite Span Strong Tbody Tfoot Colspan, rowspan Thead Migrating Wiki Content From Other Websites Backing Up the Wiki ServerManaging Wiki Content Wiki File Structure Overview Manually Editing Raw Content File or Folder Name PurposeViewing a Wiki’s Administration Settings To regenerate the index after editing raw wiki contentFor more information about AtomPub, see Metadata.plist file includes the following keys Key Example Value DescriptionTo manually edit wiki administration settings Viewing a Page’s Metainformation PageuidManaging Attachments