You can change the style of a page by color or image. However, the topic is only composed of CSS files and some images. The layout of the page (such as the navigation bar) is controlled by the template page. The following steps create a Sharepoint theme (SharePoint theme) 1. Find a template topic and copy it to a new location. Location [c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ themes] 2. Modify the subject to copy and replace the corresponding image. 3. Add the style configuration information to the SharePoint site style configuration file. A. Open c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ layouts \ 1033 \ spthemes. xml B. Add the following section for your new style
< Templates >
< Templateid > Newdirectoryname </ Templateid >
< Displayname > Theme display name </ Displayname >
< Description > Give description of the theme </ Description >
< Thumbnail > Images/customimage.png </ Thumbnail >
< Preview > Images/pagepreview.gif </ Preview >
</ Templates >
4. Restart IIS (START-> Run-> cmd-> iisreset) and apply the new style. Note: during deployment, the templateid in the configuration file should correspond to the style directory name.
Themes re-skin the layout by changing colours and images used in the design. since a theme is just a CSS file and images, the layout of the page such as the location of the navigation is controled by the master page. To create a new theme, copy an existing theme from the c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ themes Directory into a new directory. Edit the c: \ Program Files \ common files \ microsoft shared \ Web Server Extensions \ 12 \ template \ layouts \ 1033 \ spthemes. xml file and add a section for your new theme: <Templates> <Templateid> newdirectoryname </templateid> <Displayname> theme display name </displayname> <Description> give description of the theme </description> <Thumbnail> images/customimage.png </thumbnail> <Preview> images/pagepreview.gif </preview> </Templates> Perform an IIS reset and then select the new theme from the site settings page. |