Specifications
Changing the My Page Theme
You can create your own theme for My Page or edit the provided example
My Page theme.
When you create a custom theme, your theme overrides the default My Page theme.
For example, if you change the background color and the body text font in the custom
theme CSS, My Page will use the custom theme's background color and body text
font but it will use the default My Page theme for everything else. Similarly, custom
JavaScript functions override default My Page functions of the same name.
The provided example theme changes the background color of My Page.
To create a copy of the example My Page theme with permissions intact:
1 In Terminal, enter the following commands:
$ cd /Library/Application\ Support/Apple/WikiServer/Themes/
$ sudo ditto toplevel.wikitheme/ theme_name.wikitheme/
Replace theme_name with the name of the theme you’re creating.
If prompted, enter your administrator account password.
2 Restart web service.
For more information, see “Starting Up Web Service” on page 23.
To edit a My Page theme from the command line:
1 In Terminal, enter the following command:
$ cd /Library/Application\ Support/Apple/WikiServer/Themes/theme_name.
wikitheme/
Replace theme_name with the name of the My Page theme you’re editing.
If prompted, enter your administrator account password.
2 To change how My Page looks, edit the screen.css le:
$ sudo nano screen.css
If prompted, enter your administrator account password.
You can use any command-line text editor, as long as you precede the command to
run the text editor with sudo.
3 To add JavaScript functions, edit the example.js le:
$ sudo nano example.js
If prompted, enter your administrator account password.
You can use any command-line text editor, as long as you precede the command to
run the text editor with sudo.
4 Restart web service.
For more information, see “Starting Up Web Service” on page 23.
54 Chapter 3 Customizing How the Wiki Looks