---
title: "[翻译]Training Site Template&mdash;Part 1:介绍"
author: "carysun"
date: "2008-07-30T20:08:00Z"
tags: []
slug: "training-site-template-mdash-part-1"
draft: false
lastmod: "2008-07-30T20:08:00Z"
id: 463275
url: "https://carysun.iteye.com/blog/463275"
---

原文地址：[http://blogs.msdn.com/sharepointdesigner/archive/2007/03/10/training-site-template-part-1-introduction.aspx](http://blogs.msdn.com/sharepointdesigner/archive/2007/03/10/training-site-template-part-1-introduction.aspx "http://blogs.msdn.com/sharepointdesigner/archive/2007/03/10/training-site-template-part-1-introduction.aspx")

译者注：本来想逐字逐句的翻译，可是到后来觉得这样也没必要，就省略了一些无关的内容。本人翻译水平有限。

Hi大家好：

我是Sean Gabriel，SharePoint Designer团队的项目经理，我的主要工作在我们的应用程序构建上。我非常渴望能在这里分享我的知识。所以如果你在看本blog的过程中有任何关于构建应用程序方面的主题，尽管提出来。

你可能听说过 [Application Templates for Windows SharePoint Services 3.0](http://www.microsoft.com/sharepointapps/),，最近发布了一套Sharepoint网站模板，以解决40种常见的客户方案，我有幸制作了其中的一个，我将记录如何使用sharepoint designer 2007 从开始到完成的整个过程。

 

[![Dashboard9](http://images.cnblogs.com/cnblogs_com/carysun/images/cnblogs_com/carysun/WindowsLiveWriter/TrainingSiteTemplatePart1_11A05/Dashboard9_thumb.jpg)](/images/cnblogs_com/carysun/WindowsLiveWriter/TrainingSiteTemplatePart1_11A05/Dashboard9_2.jpg)

[![Courseregister5](http://images.cnblogs.com/cnblogs_com/carysun/images/cnblogs_com/carysun/WindowsLiveWriter/TrainingSiteTemplatePart1_11A05/Courseregister5_thumb.jpg)](/images/cnblogs_com/carysun/WindowsLiveWriter/TrainingSiteTemplatePart1_11A05/Courseregister5_2.jpg)

 

我将会讨论[Employee Training Scheduling and Materials](http://www.microsoft.com/downloads/details.aspx?FamilyId=B5206277-550C-44DA-A2D5-D7E32E3B6B8F&displaylang=en)这个模板，理解他最好的方式就是下载下来，自己去试试，这里我们先做一个简要介绍。

译者注：该套模板是英文的，如果你的sharepoint环境是中文，请在[http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=36ee1bf0-652c-4e38-b247-f29b3eefa048](http://www.microsoft.com/downloads/details.aspx?displaylang=zh-cn&FamilyID=36ee1bf0-652c-4e38-b247-f29b3eefa048),此下载英文的语言包，以便可以使用英文的模板。

译者注：用该模板建完网站后，如果你点击某些操作时报找不到SpellCheckEntirePage1.js，HtmlEditor.js等文件，我们需要在安装目录下的2052（中文）中找到，拷贝到1033（英文语言）目录中.

两种类型用户可以访问此站点，讲师和学生。如果一个老师有课的时候，他会将课程信息加到课程列表里。主要列出课程的时间，地点，座位数等。学生可以通过即将举行的课程列表来浏览课程信息并可以注册他们感兴趣的课程，注册列表可以跟踪这些信息，当课程快要开始的时候可以提醒注册的人，课程结束收集学生的反馈信息。教师和学生都可以都站点的首页进行个人定制。

这些行为我们都可以通过使用workflow和少量的Data Form Web Part（DFWP）来实现。下面是我们将要开发的计划：

- 设计主要列表-课程、 注册等。
- 使用工作流增加注册和提醒功能
- 重写默认的列表视图和表单来控制应用程序行为
- 在多个列表聚合视图创建dashboard page （Create dashboard page with aggregate views across multiple lists）

上面大多我们可以使用SPD来实现，我们现在就使用浏览器来完成上面第一条的内容，今天我们主要来完成列表的设计，下次完成DFWPs

**列表架构设计**

如果你点击“查看所有网站内容”，你会看到下面的列表

[![Listoflists4](http://images.cnblogs.com/cnblogs_com/carysun/images/cnblogs_com/carysun/WindowsLiveWriter/TrainingSiteTemplatePart1_11A05/Listoflists4_thumb.jpg)](/images/cnblogs_com/carysun/WindowsLiveWriter/TrainingSiteTemplatePart1_11A05/Listoflists4_2.jpg)

这个应用程序核心的部分就是课程列表，一个课程信息很像一次约会，都有一个标题，地点，开始和结束时间等等。我们在Calendar列表的基础上进行开发，执行一下步骤：

1\. 点击 Site Actions &gt; Create

2\. 在跟踪栏下选择Calendar

3\. 命名为Courses并且提供一个描述信息。

在该站点的“Uncoming Cources”列表和Calendar比较相似，但是架构不完全一样，下面我们来定制我们的课程列表：

1\. 点击 Settings &gt; List Settings

2\. 参照下面的信息创建栏

a) "Instructor" :: Person or Group :: OK

b) "Filled Seats" :: Number :: Yes to Required :: Min 0 Decimals 0 Default 0 :: OK

c) "Total Seats" :: Number :: Yes to Required :: Min 0 Decimals 0 Default 0 :: OK

3\. 修改Title和Description栏的一些设置

a) Title :: 重命名为 "Course Title" :: No to Required :: OK

b) Description :: 重命名为 "Course Description" :: OK

现在我们的课程列表由一个讲师与之关联，座位数的占位符（以后在设置），下次我们会对这个列表继续完善。

有了我们设计课程列表的详细过程，我相信你也能很快的完成剩余的列表了。下面是课程资料，他保存一些相关课程的文档。好像文档库就可以胜任，不过每一个文档都有一个标志来标识是哪个课程的文档，执行下面步骤：

1\. 点击 Site Actions &gt; Create :: Document Library

2\. 命名为"Course Materials"并且提供一个描述信息，我们使用"Microsoft Office PowerPoint presentation"做为文档模板。

3\. 点击 Settings &gt; Document Library Settings

4\. 增加栏 "Course" :: Lookup :: Yes to Required :: Get information from Courses :: In this column Course Title :: OK

在学生上完课后，我们要收集关于课程的反馈，下面我们来创建课程调查列表

1\. 点击 Site Actions &gt; Create :: Custom List

2\. 命名为"Course Surveys"并且提供一个描述信息

3\. 点击 Settings &gt; List Settings

4\. 点击 Title:: 重命名为 "One-line review" :: No to Required :: OK

5\. 增加栏 "In-depth review" :: Multiple lines of text :: OK

6\. 增加栏 "Course" :: Lookup :: Yes to Required :: Get information from Courses :: In this column Course Title :: OK

7\. 增加下面三个栏：:: Choice :: Yes to Required :: Supply choices* :: Radio

a) "Effectiveness of the instructor"

b) "Usefulness of the course materials"

c) "Satisfaction with the course"

另外，我们要跟踪课程的注册信息，执行下面步骤

1\. 点击 Site Actions &gt; Create :: Custom List

2\. 命名为"Registrations"并且提供一个描述信息。

3\. 点击 Settings &gt; List Settings

4\. 点击Title:: No to Required :: OK

5\. 增加栏 "Course ID" :: Lookup :: Yes to Required :: Get information from Courses :: In this column Course ID :: OK

本次就完成了。