Posts

Showing posts from February, 2014

SharePoint 2010 Unable to delete a content type

Image
Error: Content Type Still in Use Description When attempting to delete a content type from the site collection, Content Type Gallery, an error is returned: Error The content type is in use. Troubleshoot with Microsoft SharePoint Foundation. Correlation ID:  50b2222f-ee94-406eb7bb-d12a0be59dcd Solution There must be a document library, some place within the site collection using the Content Type that you are trying to delete.  For this reason it is not possible to delete the Content Type.  To fix this issue, identify the document library that is currently using the Content Type.  Change the Content Type of any documents in the library currently set to the Content Type.  Delete or remove the Content Type from the document library. Once you've done this, it will be possible to delete the Content Type from the gallery.

Configuring outgoing email in SharePoint 2010 Central Administration

Image
Launch Central Administration and navigate to System Settings / E-Mail and Test Messages / Configure outgoing e-mail settings. Enter your Outbound SMTP server, i.e. your Exchange server and specify a From and Reply-to address. Click OK Testing our configuration Lets navigate to our SharePoint 2010 web application and create an Alert .  In my example I will create an immediate alert for Announcements. Navigate to your Announcement List and click on List Tools/List and then click on “Alert Me” located in the ribbon interface. Select “Set alert on this list” and select your Alert options.  Ensure that you have “send notifications immediately” selected for testing purposes. Click OK You should receive your notification email that you have successfully subscribed soon after creating your alert.

How to Print Grid View in SharePoint

step 1:  Create  html button <input type="button" value="Print " id="bbtnPrint" runat="Server" onclick="javascript:CallPrint('name')"  visible="false"/> Step 2: in the div tag use  grid-view <div id=”name”>     <table>     </table> </div> step 3:Function Call <script type="text/javascript"> function CallPrint(strid)      {          var prtContent = document.getElementById(strid);          var WinPrint = window.open('', '', 'letf=0,top=0,width=600,height=500,toolbar=0,scrollbars=0,status=0');          WinPrint.document.write(prtContent.innerHTML);          WinPrint.document.close();          WinPrint.focus();          WinPrint.print();          WinPrint.close();      } </script>

Activating a SharePoint Feature on Multiple Sites or Site Collections using PowerShell

I need to either activate or even deactivate certain features on multiple site collections. So the below script will allow you to do this.. First step create a text file in the below format, you only need to define the URL for each Site collection or site. SiteURL http://sharepointsuresh/sites/site1 http://sharepointsuresh/sites/site2 http://sharepointsuresh/sites/site3 http://sharepointsuresh/sites/site4 http://sharepointsuresh/sites/site5 http://sharepointsuresh/sites/site6 You can list all features installed on your sites by using the following PowerShell: Get-SPFeature | Sort -Property Scope,DisplayName | FT -GroupBy Scope DisplayName,Id Then use the below PowerShell Script: $SiteList = Import-Csv Sites.txt ForEach ($item in $SiteList) {             If ($item -ne $null)             {                 Write-Host "Activated Branding Feature for: $($item.SiteURL)" -...

Display user profile picture next to welcome name

Image
Here is a simple way to add in the logged in users profile picture right before or after the users name in the SharePoint 2010 ribbon. 1.) Add the following to the top of your custom master page right before the doctype: <%@ Register Tagprefix="SPSWC" Namespace="Microsoft.SharePoint.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 2.) Add in the following control right before the welcome text: <SPSWC:ProfilePropertyImage PropertyName="PictureUrl" style="float: left; height: 20px;" ShowPlaceholder="true" id="PictureUrlImage" runat="server"/> A nice feature that you can customize is if you don’t want to show a placeholder image if a users has not uploaded a custom picture you can simply change ShowPlaceholder="true" to “false”. and it will only show a picture if someone has specified a custom...

SharePoint 2010 Control is currently disabled in Page Layout

Image
Here is a SharePoint 2010 Bug that needs to be fixed. If you have a custom design and you moved the site actions out and below the Ribbon Control, you will notice that when you go to change a publishing page layout via the ribbon the option is disabled. Here is what the SharePoint 2010 publishing site Ribbon Page Layout Chooser looks like when active: If you move the Site Action Control <SharePoint:SiteActions out andbelow the Ribbon Control <SharePoint:SPRibbon something similar to this: And then edit the page and try to change the publishing page layout you will notice that some of the ribbon buttons are now disabled. The key issue here is that the site actions control is removed from the SPRibbon control and placed BELOW it. If you move it out of the ribbon control and above it it seems to work fine. THE QUICK FIX: • Make sure the page is checked out and editable • Click on the Save & Close Drop down arrow button • Click Save and Keep Edi...

User Alerts in SharePoint 2010

Image
Alerts are a great way to keep track of the changes your teammates make to documents and lists. You need the Create Alerts permission to create alerts. This permission is granted usually with the out-of-the-box configuration of the Site Members SharePoint group. To create an alert to a list or library, follow these steps:  Step 1. Browse to the list or library where you want to subscribe to an alert and then click the Alert button in the Share & Track tab of the Ribbon. The New Alert window appears. You can subscribe to an alert for a list item or document by choosing Alert Me on the item’s edit menu. Step 2. In the Alert Title box, enter a name for the alert.             Make the name something meaningful to you in your inbox. Step 3. In the Send Alerts To box, enter the names of people in addition to you who should receive the alert. That’s right, you can subscribe other people to an alert! Organizati...

Metadata Navigation / Filtering for a SharePoint List

Image
Step 1: Go to List Settings     Step 2: Check you can able to find Metadata Navigation Settings     Step 3 : If you are not able to find Metadata Navigation settings, Go to Site Actions --> Site Settings and Clicj "Manage Site Features"     Step 4: Activate "Metadata Navigation and Filtering" Feature   Step 5: Now go to List settings and check you can able to find "Metadata Navigation Settings"      Step 6: "Configure Navigation Hirearchies" and Configure Key Filters".     Step 7: Choose any one of your list column and find below how it will react.     Step 8: If you choose a column under "Configure Key Filters". Sharepoint will have a filter in your Quick Launch or Left hand Side Menu     Step 9: If you choose a column under "Configure  Navigation Hirearchies". Sharepoint will have a navigation in your Quick Launch or Left hand Side...

How to Remove the Title Column from SharePoint List

Image
Technically Speaking, Removing the Title Column from a SharePoint List isn't Possible. Here we will see how to change Title from "Required" to "Not Required" and show you how to hide from all forms of the list Step 1: Go to List Settings   Step 2: Navigate to Advance Settings     Step 3: Change "Allow Management of Content Types" to yes.       Step 4: Now you will find a additional section below to "General Settings" of the List named "Content Types". Click on "Item"   Step 5: Now you will get a page named "List Content Type Information". Find "Title" under Columns section and Click on it.     Step 6: Now Choose how your title column wants to react. "Required / Optional /Hidden"     Step 7: Done.

Launch SharePoint List Forms in a dialog / full page

Image
Step 1 : Create a custom list and navigate to list settings Step 2 : Navigate to Advance Settings Step 3: Find the Row Dialog which will allow you to choose, how the forms will react in new/edit/view mode Step 4: Done.

Disable Datasheet View on a list

Image
Step 1: Create a custom list and navigate to allitems.aspx view. Step 2: Navigate to the List Tab in Ribbon, Where you will find the View Format. Step 3: In the Same list Tab, Navigate to List Settings Step 4 : Go to "Advance Settings" Step 5 : Find the Row Datasheet which will allow you to choose enable / disable Datasheet view. Step 6: Finished. Have a look.

SharePoint 2010 Related Lists

Image
Step 1 : Custom list on the site called Projects. To try it out, all you need is a Title field. Step 2: Create a new Issues list on the site. Create a new required lookup column in the list, called ProjectID, and make it look up to the Project’s Title field. Step 3: Create a new Project Tasks list, and also add a required ProjectID field that looks up to the Project list’s Title field. Step 4: Create a few items in each list, with some tasks and some issues associated with each project name. Step 5: Go back to the Projects list. Click to create a new view. Step 6 : On the new view, click Site Actions and choose Edit Page.              CHECK IT OUT!!! There’s a button in here to Insert Related List!!! Step 7: Click the Insert Related List button, and the drop-down will show the Project Tasks list and the Issues list. Insert each one on the page. Step 8: On the Page tab in the ribbon, click Stop Editing. This i...

Configuring Quotas and Locks

Image
Controlling the size of content stored within SharePoint is one of the first areas that governance plans should address from an operational perspective. Whilst many organizations seek to limit the amount of Sites and Site Collections that are created, there also needs to be a plan to limit the amount of content that is stored within a Site Collection once it is created. As you will see, the solution is painfully easy and out of the box yet many SharePoint deployments aren’t using this functionality If you have ever used SharePoint you know that a typical request from business users is “Can we just have a small site for a few of us to store some documents on?” This is then followed up in a few months with “Can you please help me restore the same site that I asked for? Only now it is used by the entire company and is over 200GB in size…Also why is SharePoint getting slower?” So our issue is simple “Can we control the amount of content that can be stored within a Site Collection so ...

Enable and Configure Resource Throttling in SharePoint 2010

Resource throttling can monitor such resources as CPU, Memory, and Wait Time, checking resources every 5 seconds. Throttling will begin after 3 unsuccessful checks. This throttling period will end after a successful check of the resources. Note that during a period of active throttling, HTTP GET requests and Search Robot requests will generate a 503 error and will be logged in the event viewer and no new timer jobs will begin. To enable resource throttling: 1.             On the General Settings Ribbon, select Resource Throttling. 2.             Enter values for the List View Threshold option. This limits queries within a list to guard against performance degradation with too many list items. In SharePoint Server 2010, a list can support up to 50 million items. Two thousand items in a view is the accepted performance limit in SharePoint Server 2010.If a list contain...

Some Social Collaboration Web Parts Missing?

Image
Problem Are you missing some of the Social Collaboration Web Parts? For example, I was expecting to find the Note Board, Organization Browser, Site Users, Tag Cloud and User Tasks and instead, was only able to pick 2 of them (Site Users and User tasks). The Fix This one is pretty easy. For the site collection in question, you are going to want to run the following: PowerShell: Enable-SPFeature PortalLayouts -Url "http://servername:port/sitecollection" Disable-SPFeature –Identity PortalLayouts –url "http://servername:port/sitecollection" Command Prompt: stsadm -o activatefeature -name "PortalLayouts" -url "http://servername:port/sitecollection" -force

SharePoint 2010 OOTB Note Board Web Part in Library item display form

Image
Well this is a very nice and simple OOTB customization I just learned to use; it allows users to add comments in a document library using the out of the box Social Note Board Web Part, What is surprisingly great about it is that the comments are specifically related to the document you comment on. So just follow these simple steps to add the Note board capability to your document library: 1.     Go to your document library and choose to edit your display item form: 2.     From the social collaboration category add the Note Board web part preferably beneath your view item Web Part: 3.     Save your changes. 4.     Choose to view one of your documents properties:     5.     Add a comment in the Note Board WP, and see the magic…