Sunday, May 4, 2008

Feature Types

Types of Features

  • Feature/Site Template Association
    • Provides Feature "Stapling"
    • Attach a feature to an existing site template
    • Facilitates versioning and reuse
    • Can associate features with the Global site definition
  • Workflow
  • Document Converter
  • Site Columns and Content Types
    • Field (you can specify a site column through a feature called Field)
    • Content Type
    • Content Type Binding (associate a content type with a list)
  • Lists Features
    • List Template
    • List Instance
    • Receiver (handles list event)
  • Content
    • Control (you have the ability to deploy controls through features, controls are user controls and web parts)
    • Module (can be used to place a file into the site)
  • Custom Actions (used to show/hide different elements of the site including the content, the drop down menus, site actions,personal settings, list settings and the drop down menu you get on the list items)
    • They are organized by Custom Action Group
    • Within a custom action group, you have custom action and hide custom action

Custom Actions Locations

  • Defined by Location - always
  • They are also defined by GroupID
    • When location has more than one position
  • Location examples with no GroupID
    • DisplayFormToolbar
    • EditControlBlock
  • Location examples with a GroupID
    • Microsoft.SharePoint.StandardMenu
      • NewMenu
      • SiteActions

Farm Scope Features

  • Control
  • Custom Action
  • Custom Action Group
  • Feature/Site Template Association

Web Application Scope Features

  • Can have all Farm Scope Features
  • Document Converter

Site (site collection) Scope Features (Scope="Site" in feature.xml)

  • Can have all Farm Scope Features
  • Content Type
  • Content Type Binding
  • Field
  • List Instance
  • Module
  • Receiver
  • Workflow

Web (individul site) Scope Features (Scope="Web" in feature.xml)

  • Control
  • Custom Action
  • Custom Action Group
  • List Instance
  • List Template
  • Module
  • Receiver
blog comments powered by Disqus