Monday, April 23, 2012

Hide Title column from SharePoint List

In this article we will discuss how to hide Title column from a SharePoint 2010 List. You can also check my last article on how to create List in SharePoint 2010.

Description.
After creating a SharePoint 2010 list, It automatically create set of predefined columns like title, created by, created, modified, modified by etc. Sometimes Title column is not in useful for us, So it is necessary to hide this column.

After creating SharePoint 2010 list go to the list settings from the Ribbon as shown in the figure below.

Thursday, April 19, 2012

Add webpart zone outside PlaceHolderMain in SharePoint 2010

In this article we will discuss how we can add a webpart zone out side the PlaceHolderMain ContentPlaceholder in SharePoint 2010. You can all see how to create a Page Layout using SharePoint 2010 designer here. Also you can check some Master Page and Page Layout articles here.

By using this link, you can create a layout in SharePoint 2010 designer. If you will look carefully then it allows us to add webpart zone inside the PlaceHolderMain contentplaceholder.

Besides that you can also add web part zones out this, more specifically you can also define
your own contentPlaceholder in the master page and also you can add your own webpart zones to the custom contentPlaceholder

To add a ContentPlaceholder in the master page, Open the master page using SharePoint 2010 designer (You can visit this article on Create custom master page by using SharePoint designer 2010 in SharePoint 2010) and then add a contentplaceholder like below:

<asp:ContentPlaceHolder ID="PlaceHolderCustom" runat="server">

</asp:ContentPlaceHolder>

Once you will define the ContentPlaceHolder it is the time now to add the webpart zones to the particular placeholder in the page layout. Now open your custom page layout using SharePoint Designer 2010 and put code like below outside PlaceHolderMain:

<asp:Content ContentPlaceholderID="PlaceHolderCustom" runat="server">

<WebPartPages:WebPartZone id="IDOfWebPartZone" runat="server" title="Title of WebPart Zone"> <ZoneTemplate> </ZoneTemplate> </WebPartPages:WebPartZone>

</asp:Content>

Here one thing need to remember is that ContentPlaceholderID name should match with the ID of ContentPlaceHolder in the master page. Here the name is PlaceHolderCustom.

Saturday, April 14, 2012

SharePoint 2010 Central Administration giving blank page

In this post we will see how sometimes after SharePoint 2010 central administration goes blank after installation in Windows 7. Also you can check the full SharePoint 2010 installation step in Windows 7.

Description:
There are lots of reason why this error (SharePoint 2010 Central Administration giving blank page) ususally comes. Some of them saying it come if you are installing SharePoint 2010 on Windows 7 Home Premium rather on Windows 7 ultimate edition.

2nd Solution:
Open Internet Information Services (IIS) Manager (Start -> Run -> inetmr)
Select SharePoint Central Administration v4 from the list of web sites as shown in the figure below. 

Double click Authentication in the main pane From there make Anonymous Access Disabled and Basic Authentication to Enabled.
3rd Solution:
From the command prompt execute the below command:
start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ManagementScriptingTools;IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-WMICompatibility;WAS WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCF-HTTP-Activation;WCF-NonHTTP-Activation

You can also check SharePoint 2010 articles

Wednesday, April 11, 2012

Upload .stp file to list templates gallery SharePoint 2010

Introduction:
In this article we will discuss how to upload a .stp file to a SharePoint 2010 list template gallery.

Description:
In SharePoint 2010 you can now save a list as a template and you can create a new list from the list template. Once you will save a list as template then this will save as a .stp file. So to upload the .stp file to the list template follow the below steps:

Go to the Site Collection Site Actions -> Site Settings
Then from the Gallery click on list template. This list template is responsible for stroring all the list template (.stp files).

Thursday, April 5, 2012

Vertical flyout menus in SharePoint 2010

Introduction:
Here in this article we will discuss how to create a vertical flyout menu in SharePoint 2010 by using SharePoint:AspMenu control. You can also check out some SharePoint Master page and Page Layout articles.

Description:
Most of the SharePoint web sites are using flyout menus either horizontal or vertical. If you want to make a vertical menu like below figure then we need to follow the below steps.

Tuesday, April 3, 2012

Login with different user in SharePoint 2010 designer

Introduction:
In this article we will discuss how to login with different user in SharePoint designer. Also you can see some SharePoint designer articles.

Description:
In browser it is easy to do login with a different user in SharePoint 2010. But in SharePoint designer is also very easy. After opening your SharePoint 2010 site in SharePoint 2010 designer look at the small people icon in the left hand side down to Site Objects section as shown in the figure.

Document ID in SharePoint 2010

Introduction:
Here we will discuss what is document id and what is the benifit of using document id in SharePoint 2010. Also you can read an article on Document Panel in SharePoint 2010.

Description:
Document ID is a new feature comes with SharePoint 2010. This basically creates unique identifiers for documents in libraries so that they can be used to retrieve documents independently from their location. In previous versions of SharePoint we can reference through
URL only but the problem arises when if you will move document from one folder to another, because it changes the URL and breaks any already existing references.

Sunday, April 1, 2012

Get subsites under site collection using SharePoint object model

Introduction:
Here we will discuss how to retrieve all sites and subsites under site collection using SharePoint object model. In our previous articles we have seen how we can get user profile details using SharePoint 2010 object model.

Description:
To retrieve all sites and sub sites presented within a site collection we can use SharePoint 2010 object model classes. Also we can do it through client object model which was introduced in SharePoint 2010.
Below is the code to retrieve all the details: