SharePoint列表的模板类型中的BaseType参数和ListTemplate参数
知道了BaseType和ListTemplate不同数字与不同意义的对应, 可以帮助我们在做数据库查询的时候更加方便.
比如:
查看所有web application中的Links List.
select * from AllLists where tp_ServerTemplate = 103
还可以在IE address Bar中直接加载你想查看的列表类型.
比如:
http://yoursite.com/_layouts/viewlsts.aspx - 可以查看所有列表, 按类型进行了分组.
http://yoursite.com/_layouts/viewlsts.aspx?BaseType=1 – 查看所有文档库.
http://yoursite.com/_layouts/viewlsts.aspx?BaseType=0&ListTemplate=108 – 查看所有的讨论组
BaseType
-
0 -- GenericList
-
1 -- DocumentLibrary
-
3 -- DiscussionBoard
-
4 -- Survey
-
5 – Issue
ListTemplate
- 100 Generic list 100 Generic list
- 101 Document library
- 102 Survey
- 103 Links list
- 104 Announcements list
- 105 Contacts list
- 106 Events list
- 107 Tasks list
- 108 Discussion board
- 109 Picture library
- 110 Data sources
- 111 Site template gallery
- 113 Web Part gallery
- 114 List template gallery
- 115 XML Form library
- 120 Custom grid for a list
- 200 Meeting Series list
- 201 Meeting Agenda list
- 202 Meeting Attendees list
- 204 Meeting Decisions list
- 207 Meeting Objectives list
- 210 Meeting text box
- 211 Meeting Things To Bring list
- 212 Meeting Workspace Pages list
- 300 Portal Sites list.
- 1100 Issue tracking
- 2002 Personal document library
- 2003 Private document library
- 101 Document library
- 102 Survey
- 103 Links list
- 104 Announcements list
- 105 Contacts list
- 106 Events list
- 107 Tasks list
- 108 Discussion board
- 109 Picture library
- 110 Data sources
- 111 Site template gallery
- 113 Web Part gallery
- 114 List template gallery
- 115 XML Form library
- 120 Custom grid for a list
- 200 Meeting Series list
- 201 Meeting Agenda list
- 202 Meeting Attendees list
- 204 Meeting Decisions list
- 207 Meeting Objectives list
- 210 Meeting text box
- 211 Meeting Things To Bring list
- 212 Meeting Workspace Pages list
- 300 Portal Sites list.
- 1100 Issue tracking
- 2002 Personal document library
- 2003 Private document library
来源:
ListTemplate Element
http://msdn.microsoft.com/en-us/library/dd586520%28office.11%29.aspx
ListTemplate Element (List Template)
http://msdn.microsoft.com/en-us/library/ms462947.aspx
SharePoint Gems: Quick Launch List Items
http://www.techelixir.com/Lists/SharePoint%20Gems/DispForm.aspx?ID=5