Hello World Feature in Windows SharePoint Services 3.0

Let’s go back to basics and see how to create a simple custom feature in WSS.  I assume you already create a WSS site or have access to one.

Creating HelloWorldBasic Project

Navigate to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\FEATURES and create a new folder HelloWorldBasic

Creating feature.xml File

Create a feature.xml file with the following info

xmlns="http://schemas.microsoft.com/sharepoint/"
 Id="3C3B6DE6-8FA6-4b8e-9CFD-62EA67057F76"
Title="Hello World Feature"
Description="My custom feature"
Scope="Web"
Hidden="FALSE"
ImageUrl="menuprofile.gif">

<ElementManifest Location="elements.xml"/>
Creating elements.xml File

In the same folder, create a new file and called it elements.xml with following info

xmlns="http://schemas.microsoft.com/sharepoint/">   
<CustomAction
Id="SiteActionsToolbar"
GroupId="SiteActions"
Location="Microsoft.SharePoint.StandardMenu"
Sequence="100"
Title="Hello World"
Description="My custom menu item"
ImageUrl="_layouts/images/menuprofile.gif">
http://imagesourceinc.com"/>
</CustomAction>
</Elements>
Installing HelloWorldBasic Feature

Open the command prompt and execute the commands as shown below

image

You should see a successful msg

Activating the Feature in WSS

Open your favorite browser and navigate to your WSS site.  From there hit Site Actions | Site Settings | Site features and hit the Activate button

clip_image001[6]

You can run your custom feature now by going back to the Site Actions menu

clip_image001[10]

Hope this helps.

Phong Hoang
Development Manager
ImageSource, Inc.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s