Features

What is Features ?

Features provide a mechanism for defining site elements and adding them to a target site or site collection through a process known as feature activation.

The element types can  be defined by a feature include :

  1. menu commands,
  2. link commands,
  3. page templates,
  4. page instances,
  5. list definitions,
  6. list instances,
  7. event handlers
  8. workflows.

Features are store on file system in following location with Feature.XML and Elements.XML.

Location :C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\TEMPLATE\FEATURES\

Feature.XML contains following parameters like s such as Id,
Title, Description, Version, Scope, Hidden and ImageUrl :

<Feature xmlns=”http://schemas.microsoft.com/sharepoint/ Title=”HelloWord Feature1 Id=”200fc9d4-af4a-4459-bdae-43e631f85ae6 Scope=”Web>
<ElementManifests>
<ElementManifest Location=”EmptyElement1\Elements.xml/>
</ElementManifests>
</Feature>
Element.xml  :This is very important file.Its tell SharePoint about actual action. Element file contains  CustomAction elements.
Example :
Id=”SiteActionsToolbar”
GroupId=”SiteActions”
Location=”Microsoft.SharePoint.StandardMenu”
Sequence=”100″
Title=”Redirect Me”
Description=”A custom menu item added using a feature”
ImageUrl=”_layouts/images/menuprofile.gif” >
<UrlAction Url=”http://msdn.microsoft.com&#8221; />

Feature will activate depnds on scop defined in feature.xml.

 

 

 

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