• SharePoint Portal Server 2003和WSS2.0中的自定义模板


    Windows SharePoint Services使用两种类型的templates.

    • 站点定义(site definition)
      • 站点定义包括所有SharePoint站点和列表继承自的基本页面和schema的集合. 站点定义包括所有的站点的配置数据, 并且被存储在WFE服务器的文件系统中, 就像Web page和XML文件一样. 一个站点定义能够实际上包含多个配置, 但是站点定义中的所有配置数据都使用相同的, 一个用户能创建的, 列表的集合. 比如说, Social Meeting, Multipage Meeting, 和Decision Meeting模板都被陈列在Template Selection页面, 而它们都基于Meetings这个Site Definition(站点定义)
    • 自定义模板
      • 你可以将一个已经存在的站点保存为一个自定义模板(.stp file). 一个.stp文件仅包含站点中什么东西被自定义过这样的信息, 其中并不包含整个站点的定义. 自定义模板是一种为某个已经存在了的站点定义(Site Definition)打包changes集合的一种方式, 然后这些changes可以被应用到新的站点和列表上. 每一个自定义的模板都是基于一个站点定义的. 自定义模板存储在数据库中, 通过central template gallery或者通过站点集的template galleries可以获得. 当你保存一个existing的站点为自定义模板是, .stp文件就被添加到顶级站点集站点模板的文档库中, 之后再所有子站点都可以使用.

    创建一个.stp文件, 你需要遵循下面的步骤 

    1. On the site, click Site Settings.
    2. Under Administration, click Go to Site Administration.
    3. Under Management and Statistics, click Save site as template.
    4. In the File name box, type the file name to use for the site template file.
    5. In the Template title box, type the title that you want to use for the template in the site template gallery.
    6. In the Template description box, type a description for the site template.
    7. If you want to include the existing site content, click to select the Include content check box.
    8. Click OK.

    把模板添加到管理中心的template gallery中, 这个模板就对于所有站点都可用了, 你可以运行Stsadm.exe命令行工具运行如下的命令来做到:

    stsadm.exe -o addtemplate -filename FileName -title TemplateTitle -description TemplateDescription

    在SharePoint Portal Server中, 用户可用的站点模板就是存储在文件系统中的站点定义的列表. 目前, 在SharePoint Potal Server中, 没有可用的UI供用户将一个customized的站点或区域export成为一个site definition, 也没有办法把一个自定义的站点模板export为一个site definition.

    Template Selection页面的可用的template列表中添加一个新item的唯一方式, 就是拷贝一个已经存在的站点模板, 把它重命名为一个以SPS开头的新名字, 编辑XML文件来添加新模板, 然后重启IIS. 你必须在新模板出现在可用的站点定义列表之前, 在每一个WFE服务器上做重复的操作. 注意, 你必须手工修改所有已经存在的模板的XML文件, 来包括这个新模板.

    Overview of custom templates in SharePoint Portal Server 2003 and in Windows SharePoint Services

    http://support.microsoft.com/kb/825217

  • 相关阅读:
    转载 linux 僵尸进程,讲的很透彻
    linux 程序自动运行总结
    使用__FILE__和__LINE__定位错误
    CURL简单使用
    阿里云域名绑定IP
    使用PHPEXCEL导入数据到数据库
    关于使用ueditor时候遇到的情况
    TP5使用PHPMAILER发送邮件
    使用ajax,结合jquery,php实现图片上传预览功能
    mysql关于数据量大的时候分页分批处理
  • 原文地址:https://www.cnblogs.com/awpatp/p/1664969.html
Copyright © 2020-2023  润新知