SharePoint 2007 List Template WSP

Project Structure

SharePoint 2007 List Template WSP

 

Feature.xml

<?xml version="1.0" encoding="utf-8"?>
<Feature  Id="74681469-FB4C-41f3-9451-3DE980551A68"
          Title="AnnouncementTMPT"
          Description="Announcements List template"
          Version="1.0.0.0"
          Hidden="FALSE"
          Scope="Web"
          DefaultResourceFile="core"
          xmlns="http://schemas.microsoft.com/sharepoint/">
  <ElementManifests>
    <ElementManifest Location="elements.xml"/>
    <ElementFile Location="AnnouncementTMPT.stp" />
  </ElementManifests>
</Feature>

Element.xml

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="AnnouncementListTemplate" Url="_catalogs/lt" RootWebOnly="TRUE">
    <File Url="AnnouncementTMPT.stp" Type="GhostableInLibrary">
      <Property Name="LanguageDisplay" Value="English" />
      <Property Name="Version" Value="1" />
    </File>
  </Module>
</Elements>

 

你可能感兴趣的:(SharePoint)