SharePoint 2007 offers an enhanced ability to catch certain user events such as ItemDeleting (before the fact) and ItemDeleted (after the fact). The API targets specific lists identified by list IDs. Example:
List template type
| Template ID
|
Custom List
| 100
|
Document Library
| 101
|
Survey
| 102
|
Links List
| 103
|
Announcement List
| 104
|
Contacts List
| 105
|
Events List
| 106
|
Task List
| 107
|
Discussion Board
| 108
|
Picture Library
| 109
|
You can find out the list ID of any other list as follows:
- Go to your 12 hives FEATURES folder C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES
- Find the folder for the list you are interested in and open it.
- Open the ListTemplates folder
- Open the XML file and read the value of the Type attribute.
- This information can also be found in the ONET.XML file in the appropriate site template directory under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates
No comments:
Post a Comment