Updatealerttemplates:Stsadm 操作 (Office SharePoint Server)
操作名称:Updatealerttemplates
说明
允许管理员更新对 Alerttemplates.xml 文件所做的自定义更改。
语法
stsadm -o updatealerttemplates
-url <URL name>
[-filename <file name>]
[-lcid <language>
参数
参数 | 值 | 是否必需 | 说明 |
---|---|---|---|
url |
一个有效的 URL,例如 http://server_name |
是 |
指定网站集的 URL 名称。 |
filename (f) |
通知模板文件的名称 |
否 |
指定 Alerttemplates.xml 文件。 |
lcid |
一个有效的区域设置 ID,例如“1033”代表英语 |
否 |
指定通知模板的语言区域设置 ID。 |
注释
为了帮助用户跟踪对网站所做的更改,Windows SharePoint Services 3.0 包括了一种属于电子邮件通知服务的通知功能。在运行 Windows SharePoint Services 3.0 的服务器上创建、修改或删除文档、列表或列表项时,用户可以配置要接收的通知,用于通知他们所做的更改。
Windows SharePoint Services 3.0 包括一组预定义的通知模板。这些通知模板存储在 Alerttemplates.xml 中。Alerttemplates.xml 定义用于根据每种列表类型创建通知消息的格式、内容和属性。开发人员可以修改 Alerttemplates.xml 的副本,然后通过使用命令 stsadm-o updatealerttemplates 来加载自定义通知模板,从而自定义通知。有关详细信息,请参阅预定义的通知模板 (https://go.microsoft.com/fwlink/?linkid=133225&clcid=0x804)。
不要在 Alerttemplates.xml 文件中手动修改或创建自定义项。这样做可能会导致在升级或安装 Service Pack 时丢失功能。
示例
若要更新 Alerttemplates.xml 文件中的指定区域设置,请键入以下语法:
stsadm -o updatealerttemplates -url https://localhost -f C:\Alerttemplates.xml –lcid 1033
备注
将不会修改数据库中不在 XML 文件中的任何通知模板。
备注
若要使对模板列表所做的更改立即生效,请在运行 updatealerttemplates 操作之后运行 iisreset 命令。