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

posted on   中道学友  阅读(1115)  评论(0编辑  收藏  举报

编辑推荐:
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律

导航

< 2010年5月 >
25 26 27 28 29 30 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

技术追求准确,态度积极向上

点击右上角即可分享
微信分享提示