Hide All Site Content Link

Looking for a straight forward and relatively easy way of hiding the All Site Content link from the quick launch area?

All you need to do is create a feature, manisfest file and user control that contains the script to hide the link.

The feature should ideally be site or web scoped although it doesn’t really matter and depends where you want the link removed from.

Create a new empty element file and replace with the following content:
Continue reading

Posted in JavaScript, SharePoint | Tagged , | Leave a comment

Programatically register InfoPath form for Web Browsing in SharePoint

A topic that is not particularly well document with SharePoint is how to deploy a web browser compatible InfoPath form via a feature.

Deploying a form through the Central Administration site provides such a form. This isn’t much use if you want to make the package that you ship to a client installable without involving some manual steps.

Installing and registering an InfoPath form, along with a custom content type is pretty straight forward once you know the required steps.

Start by creating a content type that inherits from the Forms type. The following is a sample content type’s markup.
Continue reading

Posted in InfoPath, SharePoint | Tagged , | 20 Comments

Visual Studio Caching

Since I’ve been developing with Visual Studio 2010 for SP I can’t help but feel I’ve wasted valuable time trying to resolve issues that the caching mechanism used by Visual Studio has caused.

For example, I deployed a feature that created a list on the activating web using the ListInstance element. Initially, I set the name and description with hard coded values and all was good in the world.

I then added a feature resource and added entries for the list instance’s name and description. Deleting the list and re-deploying the solution (via Visual Studio) gave the desired result. I then decided to change the display title of the list and updated the resource file accordingly.
Continue reading

Posted in SharePoint | Tagged | 10 Comments

Deploying InfoPath Form to SharePoint 2010 Site

Deploying an InfoPath form to SharePoint 2010 is relatively straight forward, as long as you remember a few simple steps.

For an easier deployment experience, avoid code behind (managed forms) in your InfoPath form unless you really have to. That’s for another day, so this post will concentrate on how to deploying an InfoPath form with no associated code behind files.

Open InfoPath and either open or create a form. I’m not going to go into how to hook up the form with a data connection, just how to configure and publish it.
Continue reading

Posted in InfoPath, SharePoint | Tagged , | 6 Comments

Updating Term Store Field Value

There appears to be various different recommendations of ways for updating a term store field value and I’d like to chip in with mine.

Some recommend updating by setting the list item’s hidden taxonomy field, which looks something like the following.

First, get the Guid for the term we need to update:
Continue reading

Posted in SharePoint, Taxonomy | Tagged , | 6 Comments