Wednesday, May 15, 2013

Create document sets in SharePoint 2013

In this post we will discuss how to create document sets in SharePoint 2013. Also you can check Event Receivers in SharePoint 2010, Backup of Site collection in SharePoint 2010 and  Hide Ribbon from Read Access users in SharePoint 2010.

Open the site collection. Then from the top level of your site collection, select Site Settings from the Site Actions menu. The Site Settings page appears.

Under the Galleries group, select Site Content Types. The Site Content Types page appears listing all content types available within the site collection.

Saturday, May 11, 2013

Copy or Move files from one folder to another folder using SharePoint 2010 object model

In this article we will discuss about how to copy files from one folder to another folder using SharePoint 2010 object model.

Also you can check out my previous posts on: CAML designer for SharePoint 2013, custom timer job sharepoint 2010 and SharePoint 2010 Centered Fixed Width Design.

Copy files in SharePoint:

SPWeb mySite = SPContext.Current.Web;

SPFolder myFolder = mySite.GetFolder("MySourceFolder");

Tuesday, May 7, 2013

Get all first level subsites under website in SharePoint 2010

In this post we will discuss how to retrieve all first level sub sites under a site or site collection. Also you can check out my previous posts on Powershell command to install activate feature SharePoint 2010, SharePoint 2010 Interview Questions and Answers and Reindex feature in list and document library in SharePoint 2013.

We have to use the Webs property of SPWeb class to get the first level subsites of a specific website. Below is the full SharePoint 2010 object model code:

Friday, May 3, 2013

Tuesday, April 30, 2013

Retrieve all web site title and list title in current site collection in SharePoint

In this post we will discuss how to retrieve all web site title and list title of the current site collection using SharePoint 2010 object model.

Also you can check out my previous posts on Create custom page layout in SharePoint 2013, Fix width of master page in SharePoint 2010 and Create custom permission level in SharePoint 2013.

Below is the full code:

SPSite siteCollection = SPContext.Current.Site;

SPWebCollection collWebsite = siteCollection.AllWebs;

Thursday, April 18, 2013

Linked Data Sources in SharePoint 2010

In this post we will discuss what is linked data sources in SharePoint 2010. Also you can check my previous posts on Hide Ribbon from Read Access users in SharePoint 2010, Backup of Site collection in SharePoint 2010 and SPWeb.GetSubwebsForCurrentUser Method SharePoint 2010.

- A linked data source allows the designer to combine the data from multiple data sources into a single set of data. The data sources being linked need not be of the same type.

Wednesday, April 17, 2013

Create new site group in SharePoint 2013

In this post we will discuss how to create a site group in SharePoint 2013. Also you can see my previous post on Cross site publishing in SharePoint 2013, Hardware and Software requirement for SharePoint 2013 and New master pages in SharePoint 2013.

Follow below steps to create new site SharePoint group:

Step-1:
From the Top level of site collection go to Site Actions -> Site Settings.