Wednesday, June 29, 2011

Deploy Welcome Page in Team Sites

In Publishing sites we have an option of setting up Welcome Page ,but this option is not present in Team Sites.
We can achieve this in different ways
  1. Using SharePoint Designer
  2. Deploy a Feature which gives you a Provision of setting up the welcome Page.
  3. Deploy a Feature which will set the new page as Welcome Page on Feature activated and resets the older default when deactivated.
I will discuss methods 2 and 3 here
Method 2:
This is how the Solution structure looks like
Below is the elements.xml where we define the Custom Actions option
<elements xmlns="http://schemas.microsoft.com/sharepoint/">
<customaction>
Id="UserGroupAdminLinkForSettings"
GroupId="Customization"
Location="Microsoft.SharePoint.SiteSettings"
RequireSiteAdministrator="TRUE"
Sequence="120"
Title="Welcome Page">
<urlaction url="_layouts/WelcomePage/WelcomePage.aspx"></urlaction>
</customaction>
</elements>

Feature.xml I have defined to be as Web
This is How the option looks like


When you click on the link this is how you see. Continuation 

No comments:

Post a Comment