Monday, June 29, 2009

Sharepoint Site Creation Notification Email

Steps Involved:

1. Create an event reciever
2. Create a feature to call the reiever when activated.
3. Create a feature stapler to staple the feature to Site Defs.

public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
SPWeb CurrentWeb = properties.Feature.Parent as SPWeb;
String Body = "A Sub Site Created with Title \""+ CurrentWeb.Title+ "\" with the URL "+CurrentWeb.Url;
foreach (SPUser user in CurrentWeb.Groups["AllAlerts"].Users)
{
SPUtility.SendEmail(CurrentWeb, false, false, user.Email, "Site Creation Alert", Body);
}
}

//Use the sharepoint inbuilt capability of sendin and email fron the SPUtility

Tuesday, June 9, 2009

List Template Id

ListId - 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 list
111 Site Template Gallery
113 Web Part Gallery
114 List Template Gallery
115 XML Form Library (InfoPath)
120 Custom grid for list
200 Meeting Series list
201 Meeting Agenda list
204 Meeting Decisions list
207 Meeting Objectives list
210 Meeting text box
211 “Things to Bring” Meeting list
212 Meeting Workspace Pages list
300 Portal Sites list
1100 Issue Tracking list
2002 Personal document library
2003 Private document library

Friday, June 5, 2009

Sharepoint Banner

  1. Create you banner.jpg and 
  2. Copy to C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\IMAGES
  3. Make modification in the core.css as shown below.("C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\STYLES\CORE.CSS")
Before Modification:
.ms-globalbreadcrumb{
font-size:8pt;
text-align:right;
background-color:#ebf3ff;
padding:2px 10px 2px 5px;
}

After Modification:
.ms-globalbreadcrumb{
font-size:8pt;
text-align:right;
background-color:#ebf3ff;
background-image:url("/_layouts/images/banner.jpg");
padding:2px 10px 79px 5px;
}

Tuesday, June 2, 2009

Override BDC default Action

Create a new Property element in the Properties element of the Entity.  Give it an attribute of DefaultAction and specify the name of the Action we defined earlier. 
Default

Specify your custom Actoin with Name="Default".

eg.        
      Action Position="1" IsOpenedInNewWindow="false" Url="{0}" ImageUrl="" Name="Default"
    

When you import the application definition, you will receive a warning like the following. 
"Could not create profile page for Entity MyEntity.  The error is: Default action exists for application ‘MyInstance’, entity ‘MyEntity’.  Profile page creation skipped.
This really isn’t an error.  It is just telling you that since you specified a default action, it did not automatically generate a profile page for the entity.

Identify WFE Vs Complete option used


You must use the Complete installation option on all computers you want to be index servers, query servers, or servers that run Excel Calculation Services.

To identify which Sharepoint Server is installed using complete option, just check the Excel Calculation Services Tab is available in the Services on the Server.

To Change a server with WFE to Complete, follow the following steps
1. Remove Server from the Farm
2. Uninstall Moss
3. Install Moss with complete Option. Install the updates(e.g., SP2)
4. Add to the Existing Farm.

That is it.