How to Deploy the SiteTemplate(.stp) file into SharePoint Farm

The site templates can be directly uploaded into “Site Template Gallery” in root site collection. If you want to deploy the Site Template at the SharePoint Farm Level. Use stsadm -addtemplate to upload the stp file.

Syntax:

Stsadm -o addtemplate -filename <filename> -title <title of template> -description <description of template>

Example:

Stsadm -o addtemplate -filename cksuge.stp -title “UserGroup Template” -description “CKS User group Template”

Now I could see the Site template displayed at Farm level.

SharePoint 2010 Easy Setup Script

Chris Johnson released a new tool to help setup a SharePoint 2010 developer machine.

In order to make this process as easy as possible they have created a series of PowerShell scripts that automate the entire process of building a fully running and ready to go SharePoint 2010 environment. The scripts are highly configurable, but out of the box they will download all of the required software, install all of the SharePoint prerequisites, install other software such as Visual Studio and Office. The script will then install and configure SharePoint 2010. And finally the script will provision a site.

There are really three options to develop SharePoint solutions. The first option is to remote desktop in to a hosted instance of SharePoint. This may be an option for many larger companies that have a good server and support infrastructure it is often not an option for smaller companies. The second option is to download and run the Information Worker VHD that has everything already setup and preconfigured. This is a very easy way to get started but it requires a machine with 8GB of RAM and capable of running Hyper-V. Again many smaller companies and independent developers can’t meet these requirements. The third option is to install SharePoint directly onto your machine running Windows 7 64bit. The downside to this option is that it requires a steep learning curve to understand how to setup and install all of the bits and pieces to have a full SharePoint developer environment. This is where the Easy Setup Script comes in. The goal of the Easy Setup Script is to reduce the learning curve and time for a casual developer to get started.

Download SharePoint Easy Setup Script


Easy Setup Script Process Flow

Click to view full size


Link to Post.


SharePoint Foundation 2010 – Search Error

I was getting the below error, when I try to search for something in SharePoint Foundation 2010 Site.
“Your Search cannot be completed because this site is not assigned to an indexer. Contact your administrator for more information”

As you guys aware that, we don’t have much options to manage search in foundation 2010, because of its limitation.

Then I figured out that, I didn’t configure/start my search service, while creating my first web application.

So, we need to configure the indexer for the Content database.

Go to Application Management -> Databases -> Manage content databases

Select your content database and choose your search server.

After this update, wait for some time (I don’t know, it takes some time), If your search service is running, the indexer will automatically start crawling content.

An error has occurred in the claim providers

When configuring the mysite in SharePoint2010 farm, it was started throwing an error “An error has occurred in the claim providers configured from this site collection”

Couldn’t figure out the issue by looking logs and events.

Also the default accounts displays some junk chars “c:0(.s\true”

Resolution:

The central administration needs to be accessed with “valid alternate access mapping url

How to Turnoff Spell Check in Lists

In MOSS 2007, we have used the jQuery to hide the Spelling in Lists (we can also handle this using Shared Services to disable)

In SharePoint 2010, we have set of FARM features. Spell Checking is one of them to disable at farm level.

Open Central Administration, Click on Farm Features under System Settings.

Deactivate the Spell Checking feature.

Now the Spell Check is not visible in lists.

CQWP for Document Library not working with Anonymous Access

It’s really strange that Content Query Web Part for document library doesn’t work for anonymous access.

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.”

It looks fine, when user logged into the site.


When accessing the page as anonymous user gives this error.


When I look at the logs for the correlation token, it throws exception on “Object reference not set to an instance of the object” (It’s trying to get the USER ID)

We have open support ticket with Microsoft regarding this issue.

Remove Pages from Breadcrumb

Today, I was doing some branding for Publishing site, which is migrated from PHP/HTML using custom code.

When I enabled the breadcrumb on pages (obviously we used our own custom page layouts), the “pages” and “.aspx” in the filename is kind of annoying. Initially I thought of removing this by adding javascript/jquery on page.

But I keep thinking that, it shouldn’t be the best way to do this.

Then I found that changing SiteMapProvider property for Bread Crumb in Master Page from “SPContentMapProvider” to “CurrentNavSiteMapProviderNoEncode”, did the magic.

Now My Sitemap looks like below:

SharePoint Designer workflow does not send email to Groups

This is the kind of repeating/common issue asked in MSDN Forum : http://social.msdn.microsoft.com/Forums/en-US/sharepointworkflow/thread/7d0166b7-6226-46bb-86cf-105647c79c47

The workflow which is created by SharePoint designer doesn’t send email to the members of SharePoint Group.

This is known issue and Designer Team gave the workaround to solve this problem.

  1. On SharePoint site, click Site Actions -> Site Settings -> Modify All Site Settings.
  2. Under Users and Permissions heading, click People and groups.
  3. Select appropriate group(s), click Settings -> Group Settings.
  4. Under Group Settings area, select everyone for who can view the membership of the group, click OK.

Custom Actions in SharePoint Designer 2010

Creating Custom Actions in SharePoint Designer 2010 is made extremely simple.

Open the site in SharePoint Designer 2010

Click on “Lists and Libraries”

Select the “List or Library” and click on the Custom Action in Ribbon and choose the where the Custom Action to be displayed.

For this simple action, we will specify the navigation URL to navigate to my blog, also it can set to navigate to form.

It’s easier to trigger a workflow from action.

Click OK to commit the actions to be saved in list.

Now open the list in browser, click on the item’s Context Menu, now you would see the Custom Action added.

Clicking on the Custom Action Menu “My Blog” will redirect to the Navigate URL.

How to Restrict SharePoint Designer Access at Site Collection in SharePoint 2010

The following Restrictions for SharePoint Designer usage can be applied to SharePoint 2010 Site.

  • Allow Site Owners and Designers to use SharePoint Designer in this Site Collection
  • Allow Site Owners and Designers to Detach Pages from the Site Definition
  • Allow Site Owners and Designers to Customize Master Pages and Page Layouts
  • Allow Site Owners and Designers to See the Hidden URL structure of their Web Site


Go to Site Actions -> Site Settings


In “Site Collection Administration” section click on SharePoint Designer Settings.


Update the appropriate settings.