RegistrationId各个数值所代表的含义

 

<?xml version="1.0" encoding="utf-8"?>

<!--Created by STSDEV at 2008-8-19 11:12:10-->

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

  <CustomAction Id="AppPage1NavigationMenu"

                RegistrationType="List"

                RegistrationId="101"

                Location="EditControlBlock"

                Sequence="300"

                ImageUrl="IMAGES\2233\AfricanPith32.gifF"

                Title="AppPage1"

    Description="Navigate to AppPage1">

    <UrlAction Url="~sitecollection/_layouts/2233/AppPage1.aspx" />

  </CustomAction>

</Elements>

     对于 Sharepoint,可以通过 Feature 的方式为不同项目添加新的功能,尤其是通过自定义CustomAction 时.在定义新的 CustomAction 时需要使用 RegistrationId 来指明将此 Action 添加到什么位置,在网上找到这个列表,先记录下来.

    下面是转载的内容,并做了部分注释.

 

Marwan Tarek's blog [MVP SharePoint]

SharePoint for good

List definitions Type and BaseType

One if the interesting topics in SharePoint customizations is developing customized list definitions to be integrated later on within you site definitions.During list definitions development you are required to determine two important values "Type" and "BaseType", following is a description for the available types (available in the WSS SDK)

Type:

Value   Description

-1     InvalidType

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

BaseType

0 — Custom List

1 — Document Library

2 — Not used

3 — Discussion Forum

4 — Surveys

5 — Issues List

so, if you are developing custom picture library set Type="109" and BaseType="1" (because picture library mainly based on document library)

another example if your are developing custom Calendar list definition set Type="100" BaseType="0".

hope it is useful ciao !

 

转载于:https://www.cnblogs.com/LeimOO/archive/2008/10/24/1318561.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值