Surprise to see this, but I'm going to disappoint you. Sharepoint does not provide any list deleting event. In fact, there is no event for list creation, deletion events.
One possible workaround that i found from sharepointking is to make use of itemDeleting events.
When list is deleted, itemDeleting event will be triggered. And the ListItem id will be 0.
Showing posts with label MOSS. Show all posts
Showing posts with label MOSS. Show all posts
Wednesday, May 20, 2009
Monday, May 18, 2009
How to activate a feature when site is created
If you have a feature that can only be activated in web level and you need the feature to be activated when the site is created, then you might need to read the following.
The key word is feature stapler, which allows you to tight a feature that you need to activate to a site template.
In summary,
1. you create a new feature that set the scope to "farm" level
2. in the element.xml, you create
FeatureSiteTemplateAssociation Id="2B3451F0-BC93-41A4-9FAD-3A81861D651A" TemplateName="STS#0"/
2B3451F0-BC93-41A4-9FAD-3A81861D651A : feature to be activated when site is created
STS#0 : STS is the template name, and 0 is the configuration ID in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML
Refer to http://sharepointmagazine.net/technical/development/introduction-to-sharepoint-feature-stapling-part-1
The key word is feature stapler, which allows you to tight a feature that you need to activate to a site template.
In summary,
1. you create a new feature that set the scope to "farm" level
2. in the element.xml, you create
2B3451F0-BC93-41A4-9FAD-3A81861D651A : feature to be activated when site is created
STS#0 : STS is the template name, and 0 is the configuration ID in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML
Refer to http://sharepointmagazine.net/technical/development/introduction-to-sharepoint-feature-stapling-part-1
Saturday, May 16, 2009
How to change the bloodly PAGES when you create publishing page in page library
If you realize when you use page content type, regardless of where the document library is location, the path is always pointing to PAGES folder, it makes your path become very ugly in the URL..
www.yoursite.com/site1/pages/myPage.aspx
www.yoursite.com/site1/pages/myPage2.aspx
Below article highlights on how to customize this behaviour. Instead of using the default createPage.aspx, we will change it to something else. And make modification from there.
Before you start, one point to take note, YOU MUST ADD THE FOLLOWING NAMESPACE IN THE NEW PAGE ELSE YOU WILL SPEND HOUR ON DEBUGGING
Import Namespace="Microsoft.SharePoint.Publishing"
<%@ Import Namespace="Microsoft.SharePoint.Publishing" %>
http://blogs.msdn.com/syedi/archive/2008/07/18/why-should-one-save-publishing-pages-in-pages-list-always-in-moss-bend-it.aspx
www.yoursite.com/site1/pages/myPage.aspx
www.yoursite.com/site1/pages/myPage2.aspx
Below article highlights on how to customize this behaviour. Instead of using the default createPage.aspx, we will change it to something else. And make modification from there.
Before you start, one point to take note, YOU MUST ADD THE FOLLOWING NAMESPACE IN THE NEW PAGE ELSE YOU WILL SPEND HOUR ON DEBUGGING
Import Namespace="Microsoft.SharePoint.Publishing"
<%@ Import Namespace="Microsoft.SharePoint.Publishing" %>
http://blogs.msdn.com/syedi/archive/2008/07/18/why-should-one-save-publishing-pages-in-pages-list-always-in-moss-bend-it.aspx
Tuesday, May 5, 2009
List Template Id's
850 Page
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
301 Blog Posts list
302 Blog Comments list
303 Blog Categories list
1100 Issue tracking
1200 Administrator tasks 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
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
301 Blog Posts list
302 Blog Comments list
303 Blog Categories list
1100 Issue tracking
1200 Administrator tasks list
Sunday, May 3, 2009
Good Startup for MOSS
You will find very interesting MOSS related topic here, to avoid tons of words to start with, this is a very good material from MSFT for beginner.
2007 Office System: How Do I? (ScreenCasts)
Office 2007 Partner Technical Readiness Training Presentations
After seeing these videos, you should have a better understanding on MOSS
Subscribe to:
Posts (Atom)