戰地連結︰ Home My Flickr NBA.com About

2008年6月4日星期三

Customizing Web Parts Outlook with XSL Editor

Overview

Out-of-the-box web parts in MOSS is very useful in development. However some of their looking might not fit your needs. However, the looking and style of web parts can be customized by editing the XSL(Extensible Stylesheet Language) file.

Steps

  1. Navigate to the Page containing the Web part you want to customize.
  2. Choose "Site Actions" -> "Edit Page"
  3. At the title of Web part, click "edit" -> "Modify Shared Web Part"
  4. At the Web part Tool Pane just opened on the right, under the "Data View Properties" category, click the "XSL Editor..." button to open a text editor containing XSL of the Web part.
  5. As the so called "XSL Editor" is just a very simple text editor (without Search Function), better copy the XSL inside to Visual Studio for editing. To do this, just new a file in VS and select XSLT as the template.
  6. When you finish editing the XSL in VS, copy it back into the "XSL Editor" and press "Save", then click "Apply" in the Web part Tool Pane to see the change.

沒有留言: