Apple Computer Hardware To manually edit wiki administration settings

Page 43

To manually edit wiki administration settings:

1Stop the web service by doing one of the following:

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

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

ÂÂ Enter the following in Terminal:

$ sudo serveradmin stop teams;

If prompted, enter your administrator account password.

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

2If you’re going to use Property List Editor or a non–command-line tool, copy the theme.plist file to your Documents folder.

To copy this file, enter:

$ sudo cp /Library/Collaboration/Groups/group_name/metadata.plist /Users/ user_name/Documents/

Replace group_name with the group’s short name. Replace user_name with the short name of the user you’re logged in as.

If prompted, enter your administrator account password.

3Open theme.plist in Property List Editor or in a text editor.

To open this file in a command-line text editor (in this example, nano), enter:

$ sudo nano theme_name.wikitheme/theme.plist

If prompted, enter your administrator account password.

You can use any text editor, as long as you precede the command to run the text editor with sudo.

If you’re using Property List Editor or a non–command-line tool, open the theme.plist located in your Documents folder.

For information about Property List Editor, see “About Property List Editor,” on page 14.

4Edit theme.plist and save your changes.

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

To copy this file, enter:

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

If prompted, enter your administrator account password.

Chapter 3    Managing Wiki Content

43

Image 43
Contents Mac OS X Server 019-1252/2008-04-24 Contents Managing Wiki Content Preface Getting Additional InformationPreface About This Guide Theme File Structure Overview This chapter describes how to customize a wiki’s appearanceCustomizing How the Wiki Looks Variant Theme File Structure Overview File or Folder Name Purpose Wireframe Theme File Structure OverviewBorders, and positioning for comment entry Creating a Theme Terminal, enter the following commandsWebsite Editing CSS FilesAbout Property List Editor Editing Property List FilesAbout Dictionaries About Property List FilesAbout Property List Keys and Values About StringsHere is an example of an array with multiple strings About ErrorsHere is the sidebars array in a plain text editor Here is an example of an array with a single stringKey Default Value Possible Values Changing General Theme SettingsDescription All sidebars require the following keys Creating SidebarsUnderstanding the Types of Sidebars Shared KeysEach dictionary entry has the following keys Static Unique KeysKey Example Value Possible Values Optional or Required Search Unique Keys Calendar Unique Keys Sidebar Name Description Overview of the Example SidebarsTag Unique Keys Recent Activity Unique KeysTerminal, enter the following command Using the Example SidebarsTo comment out specific sidebars To this To add JavaScript files or XSL files to a theme Adding JavaScript and XSL FilesPut JavaScript .js files or XSL .xsl files in this folder Here are some published JavaScript guides About JavaScriptTopic JavaScript Example About XSLViewing Dynamic XML Create a plain text file with the following contentTo view context $ sudo serveradmin stop teams sudo serveradmin start teams Attributes Creating a Custom Whitelist Allowing Specific URL Protocols About the Custom Whitelist’s StructureAllowing Specific CSS Styles To allow specific Html tags and attributes Allowing Specific Html Tags and AttributesTag Attributes Protocol About the Built-in WhitelistProtocols Allowed in the Built-in Whitelist Built-in whitelist allows these protocolsBuilt-in whitelist allows these Html tags and attributes CSS Styles Allowed in the Built-in WhitelistHtml Tags and Attributes Allowed in the Built-in Whitelist Built-in whitelist allows these CSS stylesNode Pre Cite Span Strong Tbody Tfoot Colspan, rowspan Thead Backing Up the Wiki Server Migrating Wiki Content From Other WebsitesManaging Wiki Content Wiki File Structure Overview File or Folder Name Purpose Manually Editing Raw ContentTo regenerate the index after editing raw wiki content Viewing a Wiki’s Administration SettingsFor more information about AtomPub, see Key Example Value Description Metadata.plist file includes the following keysTo manually edit wiki administration settings Pageuid Viewing a Page’s MetainformationManaging Attachments