Skip to main content

Posts

Showing posts from July, 2013

Restore a deleted Site Collection in SharePoint 2010

Restore the Site Collection run the Restore-SPDeletedSIte command with the same server relative URL Identity parameter -Identity (can be given ID of Site collection if your remember or site name) Restore-SPDeletedSite -Identity /sites/HR /

Creating your own Content Type with Visual Studio 2010

Creating your own Content Type with Visual Studio 2010 We are going to see how to deploy our own Content Type for Sharepoint 2010. This approach is quite straight forward to be honest. We could build something similar programmatically but for now let’s go to concentrate how to develop a flexible solution. I am going to develop a Content Type called DMSLegal, it will be based in a legal document management system, so considering that it should inherit the document fields plus client, matter, client description and matter description. To simplify the operation, all of them should be text columns. Let’s go to start. First of all create an Empty Project, so go to Visual Studio 2010->New Project->Sharepoint->2010-> Empty Project and in the name of the folder type netsourcecodeDMSLegal. Click on OK. Now select Deploy as Farm Solution and click Finish. Go to your project Right Click-> Add->New Item->Content Type and in the name box type DMSLegal, click Add....

Blocked File Types in SharePoint-Add or remove blocked file types

Add or remove blocked file types Use this procedure when you want to prohibit files of a specific type from being saved or retrieved from any web application on a server. To add or remove blocked file types by using Central Administration Verify that you have the following administrative credentials. You must be a farm administrator on the server. In Central Administration, click Security . On the Security page, in the General Security section, click Define blocked file types . On the Blocked File Types page, if you want to change the selected web application, on the Web Application menu, click Change Web Application . Use the Select Web Application page to select a web application. Do one of the following: To block an additional file type, scroll to the bottom of the Type each file name extension on a separate line text box, type the file name extension that you want to block, and then click OK .