When creating a SharePoint event receiver and attaching it to a SharePoint List or Document Library, one of the most important attributes to remember is the ListTemplateId. The ListTemplateId is an attribute that’s associated with a unique identifier for the target template for which the receiver is being built. There will be times when you’ll want to attach an event to a specific list or document library without having all the document libraries or lists triggering the desired event.
Here’s one quick way to do it.
1. Save the SharePoint list or Document Library as a template.

2. Go to the parent site’s template gallery to find the deisred list and save it on your desktop.

3. Download and install alphazip , or any other program that will allow you to extract and archive .cab files.
4. Rename “yourlist.stp” to “yourlist.cab”.
5. Double click on “yourlist.cab” locate the manifest.xml file and copy it to your desktop.
6. Open the manifest.xml in WordPad and locate the following:
<TemplateType>100</TemplateType> replacing the numeric value to something unqiue by checking against the SharePoint reserved values listed below:
|
Value |
Description |
|
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 |
|
112 |
User Information list |
|
113 |
Web Part gallery |
|
114 |
List template gallery |
|
115 |
XML Form library |
|
116 |
Master pages gallery |
|
117 |
No-Code Workflows |
|
118 |
Custom Workflow Process |
|
119 |
Wiki Page library |
|
120 |
Custom grid for a list |
|
130 |
Data Connection library |
|
140 |
Workflow History |
|
150 |
Gantt Tasks 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 |
|
301 |
Blog Posts list |
|
302 |
Blog Comments list |
|
303 |
Blog Categories list |
|
1100 |
Issue tracking |
|
1200 |
Administrator tasks list |
|
2002 |
Personal document library |
|
2003 |
Private document library |
7. CTRL+ S to save the file.
8.Drag and Drop the manifest.xml back to “yourlist”.cab overwriting the original.
9.Rename “yourlist.cab” back to “yourlist.stp”.
10.Upload list template back to SharePoint site and we are done
