SharePoint Features - elements, scope and other info

When designing features for SharePoint 2007 you always have to think about the scope where the feature should be executed: Web, Site, WebApplication or Farm. Microsoft has a nice table in its documentation that gives insight in what can be done where. Bram, thanks for pointing this out to me!! For more information on what these features do see this documentation by microsoft. Below I do some hyperlinking/annotation on this information to give you quick(er) access to the wonderful world named features...

The article is not finished yet, I would like to link to interesting blog posts etc, but don't have the time right now. It might be useful as it is right now. If you have other info to link in, let me know (as a comment) and I will update the post.


SCOPE AND ALLOWED FEATURES

 

 

Web (Web site)

Site (site collection)

WebApplication (Web application)

Farm (farm)


DETAILED EXPLANATION OF THE FEATURES

 

 

Content Type (Site)

Contains a schema definition you can reuse and apply to multiple list definitions.

Links:


 

Content Type Binding (Site)

Content type binding enables you to provision a content type on a list defined in the onet.xml schema. Lists defined in the onet.xml schema cannot be modified directly.

Links:


Control (Farm, WebApplication, Site, Web)

A delegate control contains a registration for a well-known control installed on a Web page. This lets you replace existing controls, such as the Windows SharePoint Services search control, with another control.

Links:


Custom Action (Farm, WebApplication, Site, Web)

You can define the following kinds of custom actions:

  • Content type links for the content type settings page

  • Drop-down menu actions for the drop-down menu that appears for an item

  • Form toolbar buttons for New, Edit, or Display form toolbars.

  • Site Settings link for the Site Settings page.

 In a custom action it is often required to pass context arguments on the URL in the <UrlAction> tag. This in done with URL Tokens.

The following URL tokens are supported:

Windows SharePoint Services supports the following tokens with which to start a relative URL:

  • ~site - Web site (SPWeb) relative link.
  • ~sitecollection - site collection (SPSite) relative link.

In addition, you can use the following tokens within a URL:

  • {ItemId} - Integer ID that represents the item within a list.
  • {ItemUrl} - URL of the item being acted upon. Only work for documents in libraries. [Not functional in Beta 2]
  • {ListId} - GUID that represents the list.
  • {SiteUrl} - URL of the Web site (SPWeb).
  • {RecurrenceId} - Recurrence index. This token is not supported for use in the context menus of list items.

Procedures

Links:


Custom Action Group (Farm, WebApplication, Site, Web)

Defines a group of custom actions.

Links:


Document Converter (WebApplication)

Contains the definition of a document converter. A document converter is a custom executable file that takes a document of one file type, and generates a copy of that file in another file type.


Feature/Site Template Association (Farm, WebApplication, Site)

Binds a feature to a site definition or template so that created sites are provisioned with the feature.


Field (Site)

Contains a field definition that can be reused among multiple lists.


Hide Custom Action (Farm, WebApplication, Site, Web)

Hides a custom action that has been added through another custom action.

Links:


List Instance (Site, Web)

Provisions a SharePoint site with a specific list of data.


List Template (Site, Web)

Contains a list definition or template, which defines a list that can be provisioned in a SharePoint site.


Module (Site, Web)

Contains a set of files with which to provision sites.


Receiver (Web)

Contains an item event receiver registration.


Workflow (Site)

Contains the definition for a workflow in a list.

 


OTHER INTERESTING INFORMATION 

 

Features and element files

In order to ensure that the feature can be properly upgraded all files belonging to the feature should be included in <ElementFile> tags. If files are not properly defined in <ElementFile> tags they will not always be upgraded when the feature is upgraded. [Source: Jussi Palo]


OTHER LINKS 

 

Activation Dependencies and Scope - How dependency between features is handled in the context of scope

Published Thursday, May 03, 2007 11:39 PM by svdoever
Filed under:

Comments

# Mike Walsh's WSS and more - WSS FAQ additions and changes LIV - 7th - 13th May 2007

Thursday, May 17, 2007 4:40 AM by Marta

# re: SharePoint Features - elements, scope and other info

I need the information of  sharepointdesigner. My doubt is on a dropdownlist that is used as the filter of a dataview. I want that it is his(her,your) first value for fault show all the records in the dataview and I do not obtain it, it(he) works out empty for me until I do a selection in the dropdownlist.

Thanks !

Friday, June 08, 2007 5:04 AM by Blog del CIIN

# WSS 3.0 & MOSS: Recopilación de enlaces interesantes (I)

Buceando por los diversos blogs de WSS 3.0 / MOSS a los que estoy suscrito (que buen invento el de las

Tuesday, November 27, 2007 1:41 PM by SharePoint Features - elements, scope and other info

# SharePoint Features - elements, scope and other info

Pingback from  SharePoint Features - elements, scope and other info

Tuesday, December 18, 2007 1:38 AM by Damn

# re: SharePoint Features - elements, scope and other info

This is the worst page I have ever passed by...

Whenever I try to search for something useful, I get this useless page!

Tuesday, December 18, 2007 9:23 AM by Serge van den Oever [Macaw]

# re: SharePoint Features - elements, scope and other info

Hi Damn,

Thanks for the compliment;-) At least it is a page with all the good keywords on it so it ends up high in Google! And the next time you pass by: let me know in a comment how I can improve "the worst page you ever passed by" so it gets even worse...

Friday, April 04, 2008 3:58 AM by Mirrored Blogs

# Programmatically deploying an InfoPath Form Library

Body: I was finding it hard to find a specific answer on how to write a Solution Package with a Feature

Sunday, May 04, 2008 5:06 AM by 大鱼

# sharepoint feature custom

Thursday, June 19, 2008 1:46 PM by Fabian

# re: SharePoint Features - elements, scope and other info

Thanks for this post, using your site I found the information I needed for my event receiver.

Wednesday, July 02, 2008 11:08 AM by David

# re: SharePoint Features - elements, scope and other info

I stumbled on this page after an hour or so of unsuccessful searching for a resolution to my issue, which is this:

I've created a site template for use in managing the projects my development team works on. The template has a custom task list and several KPI's which track that list. When I create a new site using the template, the list and the KPI's do not work, as they resolve to the URL of the site from which I created the template (saved as a template, with content).

I'm trying to figure out how to modify the List/View URL for the KPI so that it points to /<ourPortal>/<site>/<siteCreatedFromTemplate>/Project Tasks/<view>.aspx

I.E., I want the List and the KPI's to work for any site created within our projects site using my template, without having to manually go in and specify the URL/View for every KPI.

Is there some way to use a token for the URL/View field?

Thanks in advance.

Monday, July 21, 2008 12:55 PM by Ryan McIntyre

# Web.Config FeatureReceiver Update

After my previous post outlining my custom Feature Receiver used to update any section of a web.config

Friday, July 25, 2008 9:55 AM by Seamus

# re: SharePoint Features - elements, scope and other info

Hi there,

I have a list which contains both files and folders but I only want the feature to be available for files and NOT for folders - is there any way to achieve this?

Many thanks,

- Seamus

# GrinGod [dot] Com &raquo; Blog Archive &raquo; SharePoint Feature Scope Level

Pingback from  GrinGod [dot] Com  &raquo; Blog Archive   &raquo; SharePoint Feature Scope Level

Tuesday, September 09, 2008 3:06 PM by cp palsy

# cp palsy

We are committed to bringing the benefits of bioscience to our patients, by providing umbilical stem cells of the highest quality possible.

Monday, October 13, 2008 10:49 PM by Link List ??? SharePoint « SharePoint - The MOSS

# Link List ??? SharePoint &laquo; SharePoint - The MOSS

Pingback from  Link List ??? SharePoint  &laquo; SharePoint - The MOSS

Saturday, May 16, 2009 10:26 PM by nick_lileto

# re: SharePoint Features - elements, scope and other info

Leave a Comment

(required) 
(required) 
(optional)
(required)