Posts Tagged SharePoint
Adding Configurable Properties to a SharePoint Web Part’s Tool Pane
Posted by Michael Bowersox in SharePoint on February 19, 2010
In a previous post, we developed a simple web part to add two numbers together and display the result. It is a great introduction to web parts in the SharePoint world, but it is lacking any end user configuration. So, let’s go through how to add a bit of configuration to this web part. We [...]
How To Create a Basic SharePoint Web Part
Posted by Michael Bowersox in Development, SharePoint on January 15, 2010
A large part of SharePoint’s power comes from the fact that the interface is completely pluggable. Users can add web parts to pages of their choice in order to add functionality and features to a SharePoint site on demand. So, an obvious direction any SharePoint developer would take is to learn how to develop web [...]
Executing Code in Assemblies with SharePoint CustomActions
Posted by Michael Bowersox in Development, SharePoint on July 23, 2009
In my previous post, I discussed the basics of using a CustomAction to enhance the functionality of a content type. We used a CustomAction to redirect and pass some parameters to another page. This functionality is great, but what if you don’t want the user to go to another page for your custom logic to [...]
CustomAction Basics in SharePoint
Posted by Michael Bowersox in Development, SharePoint on May 25, 2009
CustomActions allow you to provide an easy way for an end user to perform some sort of action on or with a specific list item that is not available in a standard SharePoint installation.
Let’s go through a simple demo of using a CustomAction. In this demo, we will create a CustomAction which will redirect to [...]
Feature Receiver Basics
Posted by Michael Bowersox in Development, SharePoint on May 10, 2009
As you begin developing more and more complex features to be deployed to SharePoint, you will most likely come across the need to perform some additional actions when your feature is installed and activated as well as extra clean-up when your feature is deactivated and uninstalled. In come Feature Receivers to do just this. Feature [...]
Using Local Config Files with WSPBuilder
Posted by Michael Bowersox in Development, SharePoint on April 22, 2009
Using WSPBuilder is rather straight-forward and for most features the default configuration settings work fine. But what happens when you want to include custom CAS policies or change the default folder names? Fortunately, WSPBuilder has an extremely robust set of configuration switches to handle these cases.
If you look in the folder you installed WSPBuilder into, [...]
WSPBuilder Folder Structure
Posted by Michael Bowersox in Development, SharePoint on January 28, 2009
WSPBuilder makes the process of building WSP files extremely simple as illustrated in a previous post. WSPBuilder supports many features including deploying files to the 12 hive as well as deploying assemblies to the GAC or the web application’s bin folder. To do this, you must structure your project files in a specific way. Take [...]
Intro to WSPBuilder
Posted by Michael Bowersox in Development, SharePoint on January 18, 2009
WSPBuilder is a tool for building web solution (WSP) files to deploy out to a SharePoint farm. It is free, open source, and available on CodePlex here: http://www.codeplex.com/wspbuilder. It is a tool that, in my opinion, every SharePoint developer should be using.
So what is a WSP file? WSP files are web solution files. Essentially, they [...]
SPWeb.EnsureUser
Posted by Michael Bowersox in Development, SharePoint on December 13, 2008
Suppose you need to perform some actions on a SharePoint user such as role assignment, but you are unsure if the user exists within the site you are currently working with. One solution, which I have always used, is to check for the existence of the user within the site and if they do not [...]