Feature for adding a Icon to your SharePoint farm

On the internet you can find several articles about how to add an icon to the SharePoint farm.. Microsoft also has a KB article that describes how you can accomplish it.

The steps that have to be taken to add the a icon are (example with a pdf icon):

  • Copy the .gif file that you want to use for the icon to the following folder on the server:

    Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\Template\Images

  • Edit the Docicon.xml file to include the .pdf file name extension. To do so:

    a. Start Notepad, and then open the Docicon.xml file. The Docicon.xml file is located in one … Continue Reading

Adding profile properties through code

It can occur that you want to add a property to the property collection of the user profile store by using a feature.
If you want to use a feature you would have to create a feature with a FeatureReceiver. In the FeatureReceiver you would have to implement the FeatureActivated and FeatureDeactivating.

The feature.xml file will look like the following:… Continue Reading

Starting a workflow through code

Within SharePoint there can be situation in which you would like to start a workflow through code, like in an event receiver. But how do you start a workflow trough code? In the following minutes I will explain how you can accomplish this.

Before you can start a workflow you will have to have a SPListItem for which you want to start the workflow and something to retrieve the SPWorkflowAssociation with. In this example we will use the BaseID of the workflow. The BaseID of a workflow is defined in the elements manifest of the workflow feature.

If you have the two … Continue Reading

Branding a SharePoint site – Part 2

Last week I wrote the first article in a series of articles about branding your SharePoint site. In the first article we discussed how to brand your site and make it available within SharePoint with a TimerJob. In the following article we will make our theme the default theme by using Feature stapling and we will discuss a way to replace all the out of the box search images without replacing the default one in the 12 hive.

To make our theme the default theme we will have to create two features. One feature (feature stapling) will activate a … Continue Reading

Branding a SharePoint site – Part 1

Within SharePoint and WSS you have the possibility to brand your site. You can do this on several ways:

  • A custom style sheet.
  • A custom theme.

I think the best way to brand your SharePoint site is to create a custom theme.

You can create a theme by copying one of the themes folders in the “C:\Program Files\Common Files\microsoft shared\Web Server Extensions\12\TEMPLATE\THEMES” directory. When you have a copy of a directory you have to rename it to whatever you like.

In this article we will use as example a copy of the “Simple” theme and rename it to “motion10”.

In the directory you have three … Continue Reading

Page 1 of 1112345»...Last »