Tuesday, September 4, 2012

How to mix HTTP and HTTPS pages in a SharePoint 2010 site?

What?

How to have a combination of both HTTP and HTTPS pages in the same SharePoint 2010 site with configuration only without writing code?

Why?

It is a very common requirement to have a mix of HTTP and HTTPS pages in public facing SharePoint sites. Examples of such pages generally are login pages, contact forms, new testimonial form pages, new user review form pages  and any other pages that capture sensitive data from users. In these cases, only those specific pages must be loaded as HTTPS pages where as the rest of the pages in the site must be loaded as HTTP pages.

Tuesday, August 7, 2012

How to fix SharePoint Designer 2010 error "The URL '_catalogs/masterpage/page layout.aspx' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current web."

What?

SharePoint Designer 2010 throws error "The URL '_catalogs/masterpage/page layout.aspx' is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current web." when you attempt to update an existing page layout. All other page layouts can be updated normally.


Why?

There could be various reasons for this error. I have already explained about one of the various reasons that could trigger this error in this blog post earlier.

How?

This error occurs when there is an error in the page layout that is being modified. Clearly the error description is wrong and misleading :)

SharePoint 2010 - How to easily create links to existing SharePoint content in HTML Editor

What?

How to easily create links to existing SharePoint content in HTML Editor using [[ and Ctrl+Space?

 Why?

It is a common requirement to provide links to existing pages/documents/list items in SharePoint sites. This is especially true with wikis and publishing sites.

How?

While it is not difficult to copy the actual content urls manually, SharePoint 2010's HTML Editor offers a quick and convenient way to create links to existing content. This is especially useful when there is a need to create a new page during content contribution.

Tuesday, June 12, 2012

How to fix "System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.SPField.GetTypeOrBaseTypeIfTypeIsInvalid" ?

What?

I suddenly started to see an exception "An unexpected error has occurred" in our SharePoint 2010 site when I tried to access the site's landing page.







Wednesday, May 30, 2012

SharePoint 2010 - How to configure multiple search core results web parts on a page?

What?

How to configure multiple search core results web parts on a SharePoint 2010 page?

Why?

So what's a big deal in dropping multiple search core results web parts on one page?

When multiple search core results web parts exist on a page each with own query specified in either "Append Text To Query" or "Fixed Keyword Query", then one of the search core results web parts returns wrong results.


Monday, May 21, 2012

SharePoint 2010 pages throw JavaScript error "SP.Ribbon.PageState is null" when we try to connect 2 web parts on a publishing page

What?

SharePoint 2010 pages throw JavaScript error "SP.Ribbon.PageState is null" when we try to connect 2 web parts on a publishing page

Why?

Don't know :) but I know a fix

Wednesday, May 16, 2012

SharePoint 2010 - Unable to attach debugger to custom workflow built using Visual Studio

What?

I have been developing a custom workflow for SharePoint 2010 using Visual Studio 2010. I have attached it to a library and started to debug it. The debugger got attached right the first time. But after making some code changes and redeploying the workflow, I was unable to attach debugger to my custom workflow anymore!