Apple Computer Hardware Migrating Wiki Content From Other Websites, Backing Up the Wiki Server

Page 37

Managing Wiki Content

3

 

This chapter describes how to manage wiki content using tools and the command-line.

Using tools and the command line allows you to migrate, back up, and edit raw wiki content.

Migrating Wiki Content From Other Websites

AppleWikiImporter is a tool that can traverse a website that has a page listing all other pages in the site, and create wiki pages based on the website contents. If the website uses tags, AppleWikiImporter can import those tags.

To use this tool, you’ll need some knowledge of CSS selectors, and, depending on the website you’re importing, some knowledge of JavaScript.

AppleWikiImporter is located at: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=19994

For information about using AppleWikiImporter, see its readme file.

Backing Up the Wiki Server

If you installed Mac OS X Server using a standard or workgroup configuration, you can use Time Machine to automatically back up the wiki server. If you installed Mac OS X Server using an advanced configuration and haven’t changed the default wiki and calendar data store locations, Time Machine also automatically backs up your wiki server.

If you don’t use Time Machine, the following information describes how you can manually back up the wiki server.

All wiki content is stored in a data store. The default location is /Library/Collaboration/. This location can be changed using Server Admin (in Web service).

37

Image 37
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 Property List Keys and Values About Property List FilesAbout Strings About DictionariesHere is the sidebars array in a plain text editor About ErrorsHere is an example of an array with a single string Here is an example of an array with multiple stringsKey Default Value Possible Values Changing General Theme SettingsDescription Understanding the Types of Sidebars Creating SidebarsShared Keys All sidebars require the following keysEach dictionary entry has the following keys Static Unique KeysKey Example Value Possible Values Optional or Required Search Unique Keys Calendar Unique Keys Tag Unique Keys Overview of the Example SidebarsRecent Activity Unique Keys Sidebar Name DescriptionTerminal, 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 Protocols Allowed in the Built-in Whitelist About the Built-in WhitelistBuilt-in whitelist allows these protocols ProtocolHtml Tags and Attributes Allowed in the Built-in Whitelist CSS Styles 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 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