




| VSeWSS 2010 Format | SharePoint Hive Format | |
|---|---|---|
| Description | The VSeWSS 2010 project format is based on the new Visual Studio 2010 format. Some files have been added by SPSF to make the format more useful. | The Hive Format is based on the often used WSPBuilder format. SPSF used this format also in the previous version. |
| Difference in project structure | SharePoint artefacts are organized in separate "containers" and "mapped" folders. These containers and mapped folders can be added to a WSP package with the Package Explorer of VS. | SharePoint artefacts (like feature.xml, element.xml etc.) are located in a folder "SharePointRoot" (formerly used as "12" or "14" in older projects). |
| Difference in WSP creation | The WSP file is created by Visual Studio internally. | The WSP file is created by SPSF based on a manifest.xml and a makecab.ddf. These files can be generated by SPSF with T4 templates. |
| Advantages |
|
|
| Disadvantages |
|
|
| Name | Description |
|---|---|
| Application Settings | |
| Company Name | Required String. Specifies the company name of the SharePoint application, used in copyright statements. |
| Application Name | Required String. Specifies the name of the SharePoint application, given by the name of the VS solution name. |
| Application Version | Required String. Specifies the version of the SharePoint application. |
| Local Site for debugging | Optional Url. Name of a SharePoint site for local debugging. |
| Multilanguage Settings | |
| Generate .resx files automatically | Optional Boolean. If true .resx files are generated automatically. |
| Add separate project for language resources | Optional Boolean. It is a best practice to use a separate project for language resources to make new languages easier to integrate. If unchecked resources are added in each WSP solution. |
| Code Quality | |
| Check code with FxCop in 'Release' build | Optional Boolean. If true Microsoft FxCop will be executed during the 'Release' build to check the complied code against certain coding rules. Additionally a SharePoint specific FxCop settings file will be added to the solution. |
| Check code with StyleCop in 'Release' build | Optional Boolean. If true Microsoft StyleCop will be executed during the 'Release' build to check the C# source code against certain style rules. Additionally a SharePoint specific StyleCop settings file will be added to the solution. |
| Check code with ShareCop in 'Release' build | Optional Boolean. If true SharePoint Code Analysis will be executed during the 'Release' build to check the C# source code against certain style rules. Additionally a SharePoint specific ShareCop settings file will be added to the solution. |
| Check code with SPDisposeChecker in 'Release' build | Optional Boolean. If true SharePoint Dispose Checker will be executed during the 'Release' build to check the code for potential memory leaks. |
| Advanced Settings | |
| Generate manifest.xml automatically | Optional Boolean. If true the files manifest.xml and makecab.ddf are generated automatically. |
| Initial WSP Solution | |
| Final WSP Solution Filename | Optional String. Displays the final name of the wsp solution file |
| WSP Solution Name | Required String. Specifies the name of the wsp solution. The final wsp solution name will be a combination of the application name (name of the VS.NET solution) and the wsp name. |
| Deployment Server Type | Optional String. Specifies the type of deployment server. |
| Deployment Target | Optional String. Specifies the deployment target. |
| Reset Webserver | Optional Boolean. If checked the option "ResetWebServer" in the solution manifest is set to TRUE. |
| Name | Description |
|---|---|
| Task Name |
| Name | Description |
|---|---|
| Application Settings | |
| Company Name | Required String. Specifies the company name of the SharePoint application, used in copyright statements. |
| Application Name | Required String. Specifies the name of the SharePoint application, given by the name of the VS solution name. |
| Application Version | Required String. Specifies the version of the SharePoint application. |
| Local Site for debugging | Optional Url. Name of a SharePoint site for local debugging. |
| Multilanguage Settings | |
| Generate .resx files automatically | Optional Boolean. If true .resx files are generated automatically. |
| Add separate project for language resources | Optional Boolean. It is a best practice to use a separate project for language resources to make new languages easier to integrate. If unchecked resources are added in each WSP solution. |
| Code Quality | |
| Check code with FxCop in 'Release' build | Optional Boolean. If true Microsoft FxCop will be executed during the 'Release' build to check the complied code against certain coding rules. Additionally a SharePoint specific FxCop settings file will be added to the solution. |
| Check code with StyleCop in 'Release' build | Optional Boolean. If true Microsoft StyleCop will be executed during the 'Release' build to check the C# source code against certain style rules. Additionally a SharePoint specific StyleCop settings file will be added to the solution. |
| Check code with ShareCop in 'Release' build | Optional Boolean. If true SharePoint Code Analysis will be executed during the 'Release' build to check the C# source code against certain style rules. Additionally a SharePoint specific ShareCop settings file will be added to the solution. |
| Check code with SPDisposeChecker in 'Release' build | Optional Boolean. If true SharePoint Dispose Checker will be executed during the 'Release' build to check the code for potential memory leaks. |
| Advanced Settings | |
| Generate manifest.xml automatically | Optional Boolean. If true the files manifest.xml and makecab.ddf are generated automatically. |
| Initial WSP Solution | |
| Final WSP Solution Filename | Optional String. Displays the final name of the wsp solution file |
| WSP Solution Name | Required String. Specifies the name of the wsp solution. The final wsp solution name will be a combination of the application name (name of the VS.NET solution) and the wsp name. |
| Deployment Server Type | Optional String. Specifies the type of deployment server. |
| Deployment Target | Optional String. Specifies the deployment target. |
| Reset Webserver | Optional Boolean. If checked the option "ResetWebServer" in the solution manifest is set to TRUE. |
| Sandboxed solution | Optional Boolean. If checked a sandboxed solutions will be created. |
A customation project is the core wsp solution project type to deploy a .wsp solution to SharePoint.
| Name | Description |
|---|---|
| Final WSP Solution Filename | Optional String. Displays the final name of the wsp solution file |
| Solution Name | Required String. Name of the project without full namespace. |
| Deployment Server Type | Optional String. Specifies the type of deployment server. |
| Deployment Target | Optional String. Specifies the deployment target. |
| Site Url for debugging | Optional String. Specifies the local web application which is used for debugging and deployment. |
| Reset Webserver | Optional Boolean. If checked the option "ResetWebServer" in the solution manifest is set to TRUE. |
A customation project is the core wsp solution project type to deploy a .wsp solution to SharePoint.
| Name | Description |
|---|---|
| Final WSP Solution Filename | Optional String. Displays the final name of the wsp solution file |
| Solution Name | Required String. Name of the project without full namespace. |
| Deployment Server Type | Optional String. Specifies the type of deployment server. |
| Deployment Target | Optional String. Specifies the deployment target. |
| Reset Webserver | Optional Boolean. If checked the option "ResetWebServer" in the solution manifest is set to TRUE. |
A customation project is the core wsp solution project type to deploy a .wsp solution to SharePoint.
| Name | Description |
|---|---|
| Final WSP Solution Filename | Optional String. Displays the final name of the wsp solution file |
| Solution Name | Required String. Name of the project without full namespace. |
| Deployment Server Type | Optional String. Specifies the type of deployment server. |
| Deployment Target | Optional String. Specifies the deployment target. |
| Reset Webserver | Optional Boolean. If checked the option "ResetWebServer" in the solution manifest is set to TRUE. |
A customation project is the core wsp solution project type to deploy a .wsp solution to SharePoint.
| Name | Description |
|---|---|
| Final WSP Solution Filename | Optional String. Displays the final name of the wsp solution file |
| Solution Name | Required String. Name of the project without full namespace. |
| Deployment Server Type | Optional String. Specifies the type of deployment server. |
| Deployment Target | Optional String. Specifies the deployment target. |
| Site Url for debugging | Optional String. Specifies the local web application which is used for debugging and deployment. |
| Reset Webserver | Optional Boolean. If checked the option "ResetWebServer" in the solution manifest is set to TRUE. |
| Sandboxed solution | Optional Boolean. If checked a sandboxed solutions will be created. |
| Name | Description |
|---|---|
| Title | Required String. Specifies the title of the snapin. |
| Description | Required String. Specifies the title of the snapin. |
The recipe creates a new empty feature. It should be used as a start for every custom feature.
It can be specified if the feature should be deployed in a farm, web application, site, or web scope.
Most of sharepoint custom components like content types, event handler etc. require a feature.
One feature can be used to deploy multiple of these components but it is also possible to make feature activation dependent of other features.
| Name | Description |
|---|---|
| Feature settings | |
| Name | Required Text. Internal name of the Feature. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Title | Required Text. Title (friendly name) of the Feature. Limited to 255 characters. |
| Description | Required Text. Longer description of the Features purpose. |
| Scope | Required Choice. Scope in which the Feature can be activated and contains one of the following values: Farm (farm), WebApplication (Web application), Site (site collection), Web (Web site). |
| Hidden | Optional Boolean. Specifies if the feature should be hidden on the Feature activation webpages. This attribute equals FALSE by default. |
| Create Feature Receiver | Optional Boolean. When activated, a feature receiver class file will be created and linked to the Feature. This attribute equals FALSE by default. |
| Create default elements.xml | Optional Boolean. When activated the recipe creates a default elements.xml file. This attribute equals TRUE by default. |
| Advanced settings | |
| Feature ID | Required GUID. The GUID will be autogenerated by the recipe, but can be customized if neccesary. |
| Feature Version | Optional Text. Specifies a System.Version-compliant representation of the version of a Feature. This can be up to four numbers delimited by decimals that represent a version. |
| Creator | Optional Text. Name of the creator of the Feature stored in the feature.xml. |
| Activation Dependencies | Optional GUID. One or multiple Features of which the activation of this Feature should depend on. The dependencies can be either out of the box SharePoint Features or custom Features of this project. |
| Options | |
| Activate On Default | Optional Boolean. TRUE if the Feature is activated by default during installation or when a Web application is created; FALSE if the Feature is not activated. This attribute equals TRUE by default. The ActivateOnDefault attribute does not apply to site collection (Site) or Web site (Web) scoped Features. In general, Farm-scoped Features become activated during installation, and when a new Web application is created, all installed Web application-scoped Features in it become activated. |
| Always Force Install | Optional Boolean. TRUE if the Feature is installed by force during installation even if the Feature is already installed. For example, if set to TRUE, Feature installation callouts will always fire anytime a user tries to install the Feature (even if it is already installed) by using either the scanforFeatures or installfeature command-line operation. This attribute equals FALSE by default. The AlwaysForceInstall attribute affects Features of all scopes. |
| Auto Activate In Central Admin | Optional Boolean. TRUE if the Feature is activated by default in the Administrative Web site, site collection, or Web application. This attribute equals FALSE by default. The AutoActivateInCentralAdmin attribute does not apply to Farm-scoped Features. |
| Require Resources | Optional Boolean. TRUE to specify that Windows SharePoint Services check whether resources exist for the Feature by verifying that the standard "sentinel" resource for the Feature is present for a particular culture. The RequireResources attribute allows you to constrict the visibility of certain Features depending on whether resources exist in a particular language for the Feature. |
| Name | Description |
|---|---|
| Key | Optional Text. Returns the identifier of the property being modified. |
| Value | Optional Text. Returns the value of the property. |
| Name | Description |
|---|---|
| Content Type | Optional string. Specifies the content type. |
| Field | Optional string. Specifies the field in the content type. |
| Push Down Changes | Optional Boolean. Specifies whether the content type field should be applied to inheriting content types and lists. |
| Begin Version | Optional string. Specifies the earliest version number to upgrade. |
| End Version | Optional string. Specifies the latest version number to upgrade. |
| Name | Description |
|---|---|
| Activation Dependencies | Optional GUID. One or multiple Features of which the activation of this Feature should depend on. The dependencies can be either out of the box SharePoint Features or custom Features of this project. |
Feature Activation Dependencies in SharePoint 2010 can contain additional properties like MinimumVersion, FeatureName and FeatureDescription.
| Name | Description |
|---|---|
| Activation Dependencies | Optional GUID. One or multiple Features of which the activation of this Feature should depend on. The dependencies can be either out of the box SharePoint Features or custom Features of this project. |
| Minimum Version | Optional string. The minimum version of the Feature dependency. This attribute must use the pattern n.n.n.n, where each occurrence of n is a numeric value. |
| Name | Description |
|---|---|
| List Instance Settings | |
| Title | Required Text. Title of the list in the schema. |
| Description | Optional Text. Contains a description of the list. |
| Template Type | |
| Url | Required Text. Returns the site-relative URL at which to place the list. |
| Advanced Settings | |
| RootWebOnly | Optional Boolean. TRUE to specify that the list created from the definition exists only in the root Web site of a site collection. |
| OnQuickLaunch | Optional Boolean. TRUE to display lists created from the list definition on the Quick Launch bar. |
| QuickLaunchUrl | Optional Text. Specifies the URL of the view page to open for the list through Quick Launch navigation. |
| Id | Required Text. Specifies a unique identifier for the list instance. The integer must be unique across the Feature definition. |
| Name | Description |
|---|---|
| List Template Settings | |
| Base Template | Required Integer. Specifies the base type, or default schema, for lists created from the definition. |
| Name | Required Text. Specifies the internal name of the list definition. No spaces or special characters can be used. This name is also used to find the folder that contains the Schema.xml file that defines the schema in use. |
| DisplayName | Required Text. Specifies the display name of the list definition. |
| Description | Optional Text. Provides a description of the list definition. |
| Category | Optional Text. Specifies the category with which to associate lists created through the list definition. |
| Sequence | Optional Integer. Specifies the ordering priority to use for the list template on the Create page. If Sequence is not set, the template appears last in arbitrary order with any other templates that also lack a Sequence value. Two templates that specify the same sequence are sorted together in an arbitrary order. |
| Advanced Settings | |
| Type | Optional Integer. Provides a unique identifier for the template. This identifier must be unique within the feature, but need not be unique across all feature definitions or site definitions. |
| Base Type | Required Integer. Specifies the base type, or default schema, for lists created from the definition. |
| Additional Content Types | Optional Content Types. |
| Options | |
| Default in new sites | Optional Boolean. TRUE to specify that new SharePoint sites will include this list. |
| OnQuickLaunch | Optional Boolean. TRUE to display lists created from the list definition on the QuickLaunch bar. |
| DisableAttachments | Optional Boolean. TRUE to specify that users can attach files to items in lists created through the template; otherwise, FALSE. |
| DisallowContentTypes | Optional Boolean. TRUE to specify that content types can be managed on lists created through the template; otherwise, FALSE. |
| VersioningEnabled | Optional Boolean. TRUE to specify that versioning is enabled by default in lists created through the template; otherwise, FALSE. |
| FolderCreation | Optional Boolean. TRUE to enable folder creation within the list and to specify that the New Folder command appears on the New menu in list views; otherwise, FALSE. |
| EnableModeration | Optional Boolean. TRUE to specify that content approval is enabled by default in lists created through the template; otherwise, FALSE. |
| Hidden | Optional Boolean. TRUE to specify that the list definition is not available on the Create page for creating lists. |
| HiddenList | Optional Boolean. TRUE to specify that a list created from the list definition is hidden. |
| Advanced | |
| Security Read | Optional Text. Defines the item-level permissions in the list for users with sufficient permission to read or edit list items. The SecurityBits attribute contains a 2-digit string. The first digit in the string controls the read access; the second digit in the string controls the edit access. |
| Security Edit | Optional Text. Defines the item-level permissions in the list for users with sufficient permission to read or edit list items. The SecurityBits attribute contains a 2-digit string. The first digit in the string controls the read access; the second digit in the string controls the edit access. |
| Name | Description |
|---|---|
| Select Files | |
| Name | Required Text. Contains the name of the file set. |
| Target Url | Optional Text. Specifies the virtual path of the folder in which to place the files when a site is instantiated. If Path is not specified, the value of Url is used for the physical path. Use the Url attribute to provision a folder through the Feature. |
| Files | Select the files which should be added to the module. The selected files will be copied into the project. |
| RootWebOnly | Optional Boolean. TRUE if the files specified in the module are installed only in the top-level Web site of the site collection. |
| Name | Description |
|---|---|
| Site Column Type | |
| ID | Required Text. Specifies the GUID of the field. |
| Name | Required Text. The name of a field. This is the internal name of a field and is guaranteed never to change for the lifetime of the field definition. It must be unique with respect to the set of fields in a list. The name is autogenerated based on the user-defined name for a field. |
| Display Name | Optional Text. The displayed name for a field. There is no restriction on text size or use of spaces. The display name can be edited by the user and can change after initial field creation. This name is used as a column heading when the field is displayed in a table view and as a form label when the field is displayed in a form. The FieldName tag returns the display name if given; otherwise, it defaults to the Name attribute. |
| Description | Optional Text. Provides the description that is shown in the edit form for a list if a field description is specified. By default, fields in Microsoft Windows SharePoint Services do not have descriptions. |
| Group | Optional Text. Specifies the column group to which the field belongs. |
| Name | Description |
|---|---|
| Content Type Binding | |
| Content Type | Required Text. A string that represents the content type ID of the site content type to add to the specified list. |
| List Url | Required Text. A string that represents the Web-relative path to the list to which to add the content type (e.g. "Pages", "Lists/Contacts"). |
| RootWebOnly | Optional Boolean. TRUE to associate this binding only on the root Web site in a site collection (new in SP 2010). |
| Name | Description |
|---|---|
| Parent Element | |
| Parent Content Type | Required. Select the content type. |
| Fields | |
| Fields | Optional. Specifies a column to reference in this content type. |
| Remove Fields | Optional. Specifies a column reference, included in the parent content type, to be removed from this content type. |
| Name | Description |
|---|---|
| Content Type Settings | |
| Parent Content Type | Required. New content type will be derived from the selected parent content type. |
| Name | Required Text. Specifies the content type name. |
| Description | Optional Text. Provides a description for the content type, to display in the Windows SharePoint Services user interface. |
| Group | Optional Text. Specifies the content type group to which the content type is assigned. Content type groups are user-defined groups that help you organize your columns into logical categories. |
| Fields | |
| Fields | Optional. Specifies a column to reference in this content type. |
| Remove Fields | Optional. Specifies a column reference, included in the parent content type, to be removed from this content type. |
| Document Template | |
| Document Template | Optional Text. Document template which is used for creation of new items based on this content type. |
| Place template in _layouts folder for easier upgrade | Optional Boolean. If checked, the selected document template will be placed inside the /_layouts/ in SharePoint and can be updated easier in the future. Otherwise the document template will be stored in the database. |
| Event Receivers | |
| Item Adding | Optional Boolean. If checked an event handler for ItemAdding event is added to the content type. |
| Item Added | Optional Boolean. If checked an event handler for ItemAdded event is added to the content type. |
| Item Updating | Optional Boolean. If checked an event handler for ItemUpdating event is added to the content type. |
| Item Updated | Optional Boolean. If checked an event handler for ItemUpdated event is added to the content type. |
| Item Deleting | Optional Boolean. If checked an event handler for ItemDeleting event is added to the content type. |
| Item Deleted | Optional Boolean. If checked an event handler for ItemDeleted event is added to the content type. |
| Custom Forms | |
| Custom Display Form | Optional Boolean. If checked a custom form for the display mode of the content type is added. |
| Custom Edit Form | Optional Boolean. If checked a custom form for the edit mode of the content type is added. |
| Custom New Form | Optional Boolean. If checked a custom form for the creation of the content type is added. |
| Advanced Settings | |
| Content Type ID | Required Text. Specifies the content type ID of the content type. |
| Content Type Version | Reserved for future use. |
| Hidden | Optional Boolean. TRUE to define the content type as hidden. If you define a content type as hidden, Windows SharePoint Services does not display that content type on the New button in list views. If you do not include this attribute, Windows SharePoint Services treats the content type as if this attributes was set to FALSE. |
| Read Only | Optional Boolean. TRUE to define the content type as read-only. If you do not include this attribute, Windows SharePoint Services treats the content type as if this attributes was set to FALSE. |
| Sealed | Optional Boolean. TRUE to define the content type as sealed. You must have site collection administrator rights to unseal and edit a content type defined as sealed. If you do not include this attribute, Windows SharePoint Services treats the content type as if this attributes was set to FALSE. |
| Name | Description |
|---|---|
| Parent Element | |
| Parent Content Type | Required. Select the content type. |
| Document Template | |
| Document Template | Optional Text. Document template which is used for creation of new items based on this content type. |
| Place template in _layouts folder for easier upgrade | Optional Boolean. If checked, the selected document template will be placed inside the /_layouts/ in SharePoint and can be updated easier in the future. Otherwise the document template will be stored in the database. |
| Name | Description |
|---|---|
| Parent Element | |
| Parent Content Type | Required. Select the content type. |
| Event Receivers | |
| Item Adding | Optional Boolean. If checked an event handler for ItemAdding event is added to the content type. |
| Item Added | Optional Boolean. If checked an event handler for ItemAdded event is added to the content type. |
| Item Updating | Optional Boolean. If checked an event handler for ItemUpdating event is added to the content type. |
| Item Updated | Optional Boolean. If checked an event handler for ItemUpdated event is added to the content type. |
| Item Deleting | Optional Boolean. If checked an event handler for ItemDeleting event is added to the content type. |
| Item Deleted | Optional Boolean. If checked an event handler for ItemDeleted event is added to the content type. |
| Name | Description |
|---|---|
| Parent Element | |
| Parent Content Type | Required. Select the content type. |
| Custom Forms | |
| Custom Display Form | Optional Boolean. If checked a custom form for the display mode of the content type is added. |
| Custom Edit Form | Optional Boolean. If checked a custom form for the edit mode of the content type is added. |
| Custom New Form | Optional Boolean. If checked a custom form for the creation of the content type is added. |
The Team Site Definition is a standard preconfigured site definition which already contains a documents library, an announcements list, discussion list etc. This site definition can be used as a starting point to create a custom team site definition based on the default out of the box configuration which comes with WSS.
| Name | Description |
|---|---|
| General settings | |
| Name | Required Text. Specify the name of the folder which will be created in folder SiteTemplates. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Title | Required Text. Title of the site template as it appears in the selection of Create Site dialog. Limited to 255 characters. |
| ID | Required Number. Id of the site template. Should be unique on the farm and greater than 10000. |
| Description | Required Text. Longer description of the purpose of this site definition. |
| Category | Required Text. Title of the cateogry in which the site definition should appear in the Create Site dialog. Limited to 255 characters. |
| Advanced settings | |
| Hidden | Optional Boolean. If TRUE hides the site definition from the Create Site dialog. Creation of sites with this definition through code will be still possible. |
| RootWebOnly | Optional Boolean. If TRUE the site created from the configuration can only exist as the root Web site in a site collection. This attribute is not enforced in site templates (.stp files). |
| Visibility Feature Dependency | Optional Text. Optional Text. Used in a WebTemp*.xml file to hide the site definition configuration based on the activation state of the specified Feature. This attribute is not supported for Features with Web application scope. |
The BalnkSite Definition is a standard site definition which does not contain any lists or libraries.
This site definition can be used as a starting point to create a custom site definition
based on the default out of the box configuration which comes with WSS.
| Name | Description |
|---|---|
| General settings | |
| Name | Required Text. Specify the name of the folder which will be created in folder SiteTemplates. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Title | Required Text. Title of the site template as it appears in the selection of Create Site dialog. Limited to 255 characters. |
| ID | Required Number. Id of the site template. Should be unique on the farm and greater than 10000. |
| Description | Required Text. Longer description of the purpose of this site definition. |
| Category | Required Text. Title of the cateogry in which the site definition should appear in the Create Site dialog. Limited to 255 characters. |
| Advanced settings | |
| Hidden | Optional Boolean. If TRUE hides the site definition from the Create Site dialog. Creation of sites with this definition through code will be still possible. |
| RootWebOnly | Optional Boolean. If TRUE the site created from the configuration can only exist as the root Web site in a site collection. This attribute is not enforced in site templates (.stp files). |
| Visibility Feature Dependency | Optional Text. Optional Text. Used in a WebTemp*.xml file to hide the site definition configuration based on the activation state of the specified Feature. This attribute is not supported for Features with Web application scope. |
Stapling SharePoint features with site definitions, which relies on the FeatureSiteTemplateAssociation element, allows developers to attach features to both standard and custom site definitions without directly modifying them.
Every new site that is based on a site definition with a stapled feature is created with that feature activated.
Feature stapling is particularly useful when you want to add functionality to standard site definitions because editing standard site definition files is not a recommended practice. (Source: MSDN)
| Name | Description |
|---|---|
| Feature Associations | |
| Feature | Required Feature. Feature to which the previously selected feature should be stapled to. |
| Site Template | Optional Site Definition. Site Definition to which the previously selected feature should be stapled to. |
With a theme SharePoint Look and Feel can be altered only by modifying cascading stylesheets (CSS) and images.
Opposing to master pages, also affect the MOSS backend without the need to modify application.master (which is not recommended anyway).
This recipe creates a new basic theme which can be deployed to a farm with a feature.
| Name | Description |
|---|---|
| Theme settings | |
| Name | Required Text. Internal name of the Feature. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Display Name | Required Text. Display name of the Theme. Limited to 255 characters. |
| Description | Optional String. Longer description ofthe theme. |
Use this recipe if a custom theme should be activated on a site, together with the activation of a feature.
It is also possible to specificy which theme default theme should be used, when the feature is deactivated again.
| Name | Description |
|---|---|
| Theme settings | |
| Theme to activate | Required Theme. The name of the theme which should be activated |
| Default theme for deactivation of the feature | Required Theme. The name of the default theme which is activated if the feature is deactivated. |
| Name | Description |
|---|---|
| Content Type | |
| Content Type | Select the content type to which the custom action should be added. |
| Custom Actions Settings | |
| Title | Required Text. Specifies the end user description for this action. |
| Description | Optional Text. Specifies a longer description for the action that is exposed as a tooltip or sub-description for the action. |
| Sequence | Optional Integer. Specifies the ordering priority for actions. |
| Advanced Settings | |
| Custom Action ID | Optional Text. Specifies a unique identifier for the custom action. The ID may be a GUID, or it may be a unique term, for example, "HtmlViewer". |
| Options | |
| Show In Lists | |
| Show In ReadyOnly ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for read-only content types on the page for managing content types. The default value is FALSE. |
| Show In Sealed ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for sealed content types on the page for managing content types. The default value is FALSE. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Url Settings | |
| Type of action | Required. Select the type of action that should be performed after click. |
| Url Page | Optional Text. Select a page where the custom action should link to. Only required if field 'Type of action' is 'UrlAction'. |
| Use URL Prefix | Optional Text. Select the prefix which should be placed at the beginning of the url action. |
| Name | Description |
|---|---|
| File Extension | |
| Extension | Enter the file extension. |
| Custom Actions Settings | |
| Title | Required Text. Specifies the end user description for this action. |
| Description | Optional Text. Specifies a longer description for the action that is exposed as a tooltip or sub-description for the action. |
| Sequence | Optional Integer. Specifies the ordering priority for actions. |
| Advanced Settings | |
| Custom Action ID | Optional Text. Specifies a unique identifier for the custom action. The ID may be a GUID, or it may be a unique term, for example, "HtmlViewer". |
| Options | |
| Show In Lists | |
| Show In ReadyOnly ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for read-only content types on the page for managing content types. The default value is FALSE. |
| Show In Sealed ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for sealed content types on the page for managing content types. The default value is FALSE. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Url Settings | |
| Type of action | Required. Select the type of action that should be performed after click. |
| Url Page | Optional Text. Select a page where the custom action should link to. Only required if field 'Type of action' is 'UrlAction'. |
| Use URL Prefix | Optional Text. Select the prefix which should be placed at the beginning of the url action. |
| Name | Description |
|---|---|
| ProgId | |
| Content Type | Select the document type to which the custom action should be added. |
| Custom Actions Settings | |
| Title | Required Text. Specifies the end user description for this action. |
| Description | Optional Text. Specifies a longer description for the action that is exposed as a tooltip or sub-description for the action. |
| Sequence | Optional Integer. Specifies the ordering priority for actions. |
| Advanced Settings | |
| Custom Action ID | Optional Text. Specifies a unique identifier for the custom action. The ID may be a GUID, or it may be a unique term, for example, "HtmlViewer". |
| Options | |
| Show In Lists | |
| Show In ReadyOnly ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for read-only content types on the page for managing content types. The default value is FALSE. |
| Show In Sealed ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for sealed content types on the page for managing content types. The default value is FALSE. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Url Settings | |
| Type of action | Required. Select the type of action that should be performed after click. |
| Url Page | Optional Text. Select a page where the custom action should link to. Only required if field 'Type of action' is 'UrlAction'. |
| Use URL Prefix | Optional Text. Select the prefix which should be placed at the beginning of the url action. |
| Name | Description |
|---|---|
| List Type | |
| List Type | Select the list type where the action should be added. |
| Toolbar | Select the location where the action should be added. |
| Custom Actions Settings | |
| Title | Required Text. Specifies the end user description for this action. |
| Description | Optional Text. Specifies a longer description for the action that is exposed as a tooltip or sub-description for the action. |
| Sequence | Optional Integer. Specifies the ordering priority for actions. |
| Advanced Settings | |
| Custom Action ID | Optional Text. Specifies a unique identifier for the custom action. The ID may be a GUID, or it may be a unique term, for example, "HtmlViewer". |
| Options | |
| Show In Lists | |
| Show In ReadyOnly ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for read-only content types on the page for managing content types. The default value is FALSE. |
| Show In Sealed ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for sealed content types on the page for managing content types. The default value is FALSE. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Url Settings | |
| Type of action | Required. Select the type of action that should be performed after click. |
| Url Page | Optional Text. Select a page where the custom action should link to. Only required if field 'Type of action' is 'UrlAction'. |
| Use URL Prefix | Optional Text. Select the prefix which should be placed at the beginning of the url action. |
| Name | Description |
|---|---|
| List Type | |
| List Type | Select the list type where the action should be added. |
| Toolbar | Select the toolbar where the action should be added. |
| Custom Actions Settings | |
| Title | Required Text. Specifies the end user description for this action. |
| Description | Optional Text. Specifies a longer description for the action that is exposed as a tooltip or sub-description for the action. |
| Sequence | Optional Integer. Specifies the ordering priority for actions. |
| Advanced Settings | |
| Custom Action ID | Optional Text. Specifies a unique identifier for the custom action. The ID may be a GUID, or it may be a unique term, for example, "HtmlViewer". |
| Options | |
| Show In Lists | |
| Show In ReadyOnly ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for read-only content types on the page for managing content types. The default value is FALSE. |
| Show In Sealed ContentTypes | Optional Boolean. TRUE if the custom action is only displayed for sealed content types on the page for managing content types. The default value is FALSE. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Url Settings | |
| Type of action | Required. Select the type of action that should be performed after click. |
| Url Page | Optional Text. Select a page where the custom action should link to. Only required if field 'Type of action' is 'UrlAction'. |
| Use URL Prefix | Optional Text. Select the prefix which should be placed at the beginning of the url action. |
| Name | Description |
|---|---|
| Location settings | |
| Menu Location | |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Custom Actions Settings | |
| Title | Required Text. Specifies the end user description for this action. |
| Description | Optional Text. Specifies a longer description for the action that is exposed as a tooltip or sub-description for the action. |
| Sequence | Optional Integer. Specifies the ordering priority for actions. |
| Advanced Settings | |
| Custom Action ID | Optional Text. Specifies a unique identifier for the custom action. The ID may be a GUID, or it may be a unique term, for example, "HtmlViewer". |
| Url Settings | |
| Type of action | Required. Select the type of action that should be performed after click. |
| Url Page | Optional Text. Select a page where the custom action should link to. Only required if field 'Type of action' is 'UrlAction'. |
| Use URL Prefix | Optional Text. Select the prefix which should be placed at the beginning of the url action. |
| Name | Description |
|---|---|
| Location settings | |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Custom Actions Settings | |
| Title | Required Text. Specifies the end user description for this action. |
| Description | Optional Text. Specifies a longer description for the action that is exposed as a tooltip or sub-description for the action. |
| Sequence | Optional Integer. Specifies the ordering priority for actions. |
| Advanced Settings | |
| Custom Action ID | Optional Text. Specifies a unique identifier for the custom action. The ID may be a GUID, or it may be a unique term, for example, "HtmlViewer". |
| Url Settings | |
| Type of action | Required. Select the type of action that should be performed after click. |
| Url Page | Optional Text. Select a page where the custom action should link to. Only required if field 'Type of action' is 'UrlAction'. |
| Use URL Prefix | Optional Text. Select the prefix which should be placed at the beginning of the url action. |
| Name | Description |
|---|---|
| Location settings | |
| Title | Required Text. Specifies the end user description for this action. |
| Description | Optional Text. Specifies a longer description for the action that is exposed as a tooltip or sub-description for the action. |
| Sequence | Optional Integer. Specifies the ordering priority for actions. |
| Hide Location | Select the location where the action group should be added. |
| Name | Description |
|---|---|
| Hide Action | |
| Location Element | Select the action which should be hidden. |
| Name | Description |
|---|---|
| General Settings | |
| Name | Required Text. Specifies the name of the button control. |
| Title | Required Text. The text to label the control. |
| Description | Required Text. The text that appears as the description of the tooltip. |
| Sequence | Required Integer. An integer that specifies the order of placement among sibling XML nodes. |
| Target Location Settings | |
| Custom Action Location | Required Text. Location element of the custom action. |
| Optional Permission Settings | |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Optional List Settings | |
| Registration Type | Optional Text. Specifies the registration attachment for a per-item action. Possible values include: None, List, ContentType, ProgId, FileType |
| Registration Id | Optional Text. Specifies the identifier of the list or item content type that this action is associated with, or the file type or programmatic identifier (ProgID). Enter the list type (e.g. 101) or the content type (e.g.0x10). |
| Name | Description |
|---|---|
| General Settings | |
| Name | Required Text. Specifies the name of the button control. |
| Title | Required Text. The text to label the control. |
| Description | Required Text. The text that appears as the description of the tooltip. |
| Sequence | Required Integer. An integer that specifies the order of placement among sibling XML nodes. |
| Target Location Settings | |
| Custom Action Location | Required Text. Location element of the custom action. |
| Optional Permission Settings | |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Optional List Settings | |
| Registration Type | Optional Text. Specifies the registration attachment for a per-item action. Possible values include: None, List, ContentType, ProgId, FileType |
| Registration Id | Optional Text. Specifies the identifier of the list or item content type that this action is associated with, or the file type or programmatic identifier (ProgID). Enter the list type (e.g. 101) or the content type (e.g.0x10). |
| Location Settings | |
| Parent Ribbon Tab | Required Text. Specifies the existing ribbon tab into which the new group should be added. |
| Name | Description |
|---|---|
| General Settings | |
| Name | Required Text. Specifies the name of the button control. |
| Title | Required Text. The text to label the control. |
| Description | Required Text. The text that appears as the description of the tooltip. |
| Sequence | Required Integer. An integer that specifies the order of placement among sibling XML nodes. |
| Target Location Settings | |
| Custom Action Location | Required Text. Location element of the custom action. |
| Optional Permission Settings | |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Optional List Settings | |
| Registration Type | Optional Text. Specifies the registration attachment for a per-item action. Possible values include: None, List, ContentType, ProgId, FileType |
| Registration Id | Optional Text. Specifies the identifier of the list or item content type that this action is associated with, or the file type or programmatic identifier (ProgID). Enter the list type (e.g. 101) or the content type (e.g.0x10). |
| Location Settings | |
| Parent Ribbon Group | Required Text. Specifies the existing ribbon group into which the new button should be added. |
| Control Settings | |
| Type of Control | Required String. Specifies the type of control that should be added. |
| Name | Description |
|---|---|
| General Settings | |
| Name | Required Text. Specifies the name of the button control. |
| Title | Required Text. The text to label the control. |
| Description | Required Text. The text that appears as the description of the tooltip. |
| Sequence | Required Integer. An integer that specifies the order of placement among sibling XML nodes. |
| Optional Permission Settings | |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Optional List Settings | |
| List Type | Select the list type where the action should be added. |
| Location Settings | |
| Parent Ribbon Group | Required Text. Specifies the existing ribbon group into which the new button should be added. |
| Name | Description |
|---|---|
| General Settings | |
| Name | Required Text. Specifies the name of the button control. |
| Title | Required Text. The text to label the control. |
| Description | Required Text. The text that appears as the description of the tooltip. |
| Sequence | Required Integer. An integer that specifies the order of placement among sibling XML nodes. |
| Optional Permission Settings | |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Form Settings | |
| Custom Action Location | Required Text. Location element of the custom action. |
| Optional List Settings | |
| List Type | Select the list type where the action should be added. |
| Location Settings | |
| Parent Ribbon Group | Required Text. Specifies the existing ribbon group into which the new button should be added. |
In this sample a custom ribbon button is added to the edit form of the content type Document (0x0101). The following code adds the button to the actions group.
<CustomAction
Id="Ribbon.SP2010.VseWss.RibbonContentType"
Location="CommandUI.Ribbon"
Title="RibbonContentType"
RegistrationType="ContentType"
RegistrationId="0x0101">
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition
Location="Ribbon.DocLibListForm.Edit.Actions.Controls._children">
<Button
Id="Ribbon.SP2010.VseWss.RibbonContentType.Button"
Command="SP2010.VseWss.RibbonContentType.ButtonCommand"
Sequence="500"
Image16by16="/_layouts/images/SP2010_VseWss/RibbonIcon_RibbonContentType_16.gif"
Image32by32="/_layouts/images/SP2010_VseWss/RibbonIcon_RibbonContentType_32.gif"
LabelText="ContentType Button"
ToolTipTitle="ContentType Button"
ToolTipDescription="Description of ContentType Button"
TemplateAlias="o2" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="SP2010.VseWss.RibbonContentType.ButtonCommand"
CommandAction="javascript:alert('Hello, world');" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
| Name | Description |
|---|---|
| General Settings | |
| Name | Required Text. Specifies the name of the button control. |
| Title | Required Text. The text to label the control. |
| Description | Required Text. The text that appears as the description of the tooltip. |
| Sequence | Required Integer. An integer that specifies the order of placement among sibling XML nodes. |
| Optional Permission Settings | |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Form Settings | |
| Custom Action Location | Required Text. Location element of the custom action. |
| Optional List Settings | |
| Content Type | Select the content type where the action should be added. |
| Location Settings | |
| Parent Ribbon Group | Required Text. Specifies the existing ribbon group into which the new button should be added. |
| Name | Description |
|---|---|
| General Settings | |
| Name | Required Text. Specifies the name of the button control. |
| Title | Required Text. The text to label the control. |
| Description | Required Text. The text that appears as the description of the tooltip. |
| Sequence | Required Integer. An integer that specifies the order of placement among sibling XML nodes. |
| Target Location Settings | |
| Custom Action Location | Required Text. Location element of the custom action. |
| Optional Permission Settings | |
| Rights | Optional Text. Specifies a set of rights that the user must have in order for the link to be visible. If not specified, then the action always appears in the list of actions. The set of rights are grouped logically according to AND logic. |
| Require Site Administrator | Optional Boolean. TRUE to specify that the item be displayed only if the user is a site administrator; otherwise, FALSE. Using the RequireSiteAdministrator attribute for the drop-down menu of Windows SharePoint Services commands associated with list items is not supported. |
| Optional List Settings | |
| Registration Type | Optional Text. Specifies the registration attachment for a per-item action. Possible values include: None, List, ContentType, ProgId, FileType |
| Registration Id | Optional Text. Specifies the identifier of the list or item content type that this action is associated with, or the file type or programmatic identifier (ProgID). Enter the list type (e.g. 101) or the content type (e.g.0x10). |
| Name | Description |
|---|---|
| Location settings | |
| Parent Group | Required Text. Specifies the existing ribbon control which should be hidden. |
Creates a ItemEventHandler.
| Name | Description |
|---|---|
| Event Handler settings | |
| Name | Required Text. Used as the class name of the event handler. |
| List Template | Optional Text. Specifies the index of the list template to which the event receiver applies. The following values are the default list template types. |
| List Template Owner | Optional GUID. Specifies the GUID of the list template owner if the list template is registered via Features, or the name of the site definition if the list template is registered by a site definition. |
| Sequence | Required Number. Specifies the order to use for the event registration when more than one handler is associated with the feature. |
| Registrations | |
| Event Types | Select the event elements. |
| Optional Settings | |
| RootWebOnly | Optional Boolean. True if the event receiver applies only to the root Web; otherwise, False. |
| Scope | Optional enumeration. The scope of the event receiver. This can be Site or Web. When the Scope attribute is set to Site, event receivers that are defined inside of a Feature that is scoped to the site collection are registered at the site collection level. When the Scope attribute is set to Web, event receivers that are defined inside of a Feature that is scoped to a Web are registered on the Web. |
| Synchronization | Specifies the synchronization of the event receiver. |
Creates a ListEventHandler.
| Name | Description |
|---|---|
| Event Handler settings | |
| Name | Required Text. Used as the class name of the event handler. |
| List Template | Optional Text. Specifies the index of the list template to which the event receiver applies. The following values are the default list template types. |
| List Template Owner | Optional GUID. Specifies the GUID of the list template owner if the list template is registered via Features, or the name of the site definition if the list template is registered by a site definition. |
| Sequence | Required Number. Specifies the order to use for the event registration when more than one handler is associated with the feature. |
| Registrations | |
| Event Types | Select the event elements. |
| Optional Settings | |
| RootWebOnly | Optional Boolean. True if the event receiver applies only to the root Web; otherwise, False. |
| Scope | Optional enumeration. The scope of the event receiver. This can be Site or Web. When the Scope attribute is set to Site, event receivers that are defined inside of a Feature that is scoped to the site collection are registered at the site collection level. When the Scope attribute is set to Web, event receivers that are defined inside of a Feature that is scoped to a Web are registered on the Web. |
| Synchronization | Specifies the synchronization of the event receiver. |
Event handlers for sites and webs must be registered with a feature receiver
| Name | Description |
|---|---|
| Event Handler settings | |
| Name | Required Text. Used as the class name of the event handler. |
| List Template | Optional Text. Specifies the index of the list template to which the event receiver applies. The following values are the default list template types. |
| List Template Owner | Optional GUID. Specifies the GUID of the list template owner if the list template is registered via Features, or the name of the site definition if the list template is registered by a site definition. |
| Sequence | Required Number. Specifies the order to use for the event registration when more than one handler is associated with the feature. |
| Registrations | |
| Event Types | Select the event elements. |
| Optional Settings | |
| RootWebOnly | Optional Boolean. True if the event receiver applies only to the root Web; otherwise, False. |
| Scope | Optional enumeration. The scope of the event receiver. This can be Site or Web. When the Scope attribute is set to Site, event receivers that are defined inside of a Feature that is scoped to the site collection are registered at the site collection level. When the Scope attribute is set to Web, event receivers that are defined inside of a Feature that is scoped to a Web are registered on the Web. |
| Synchronization | Specifies the synchronization of the event receiver. |
Debugging of email events requires attaching to ows timer service.
After changing code the ows timer needs to be restarted. IISReset will not load new assembly to ows timer.
| Name | Description |
|---|---|
| Event Handler settings | |
| Name | Required Text. Used as the class name of the event handler. |
| List Template | Optional Text. Specifies the index of the list template to which the event receiver applies. The following values are the default list template types. |
| List Template Owner | Optional GUID. Specifies the GUID of the list template owner if the list template is registered via Features, or the name of the site definition if the list template is registered by a site definition. |
| Sequence | Required Number. Specifies the order to use for the event registration when more than one handler is associated with the feature. |
| Registrations | |
| Event Types | Select the event elements. |
| Optional Settings | |
| RootWebOnly | Optional Boolean. True if the event receiver applies only to the root Web; otherwise, False. |
| Scope | Optional enumeration. The scope of the event receiver. This can be Site or Web. When the Scope attribute is set to Site, event receivers that are defined inside of a Feature that is scoped to the site collection are registered at the site collection level. When the Scope attribute is set to Web, event receivers that are defined inside of a Feature that is scoped to a Web are registered on the Web. |
| Synchronization | Specifies the synchronization of the event receiver. |
Web Parts are server-side controls that run inside the context of special pages (that is, Web Part Pages) within an ASP.NET application or a Windows SharePoint Services site.
They are the "building blocks" of pages in Windows SharePoint Services.
Windows SharePoint Services includes built-in Web Parts that you can use as soon as you have installed the product.
In addition, you can build your own Web Parts and deploy them to the server. (MSDN)
| Name | Description |
|---|---|
| Web Part Information | |
| Web Part Name | Enter the name of the web part. The name will be used for the class name (.cs). |
| Web Part Title | Enter the title of the web part (displayed in the web part gallery as web part title). |
| Web Part Description | Enter the description of the web part (displayed in the web part gallery as web part description). |
| Group | Enter the group in which the web part should appear in web part gallery. |
| QuickAdd Group | Enter the quick add group in which the web part should appear when the user wants to add a web part to a page. |
Adds a web part to the project derived from System.Web.UI.WebControls.WebParts.WebPart.
Creating this kind of webpart allows reuse in non-SharePoint ASP WebPages, but also lacks the SharePoint specific additions, like caching.
| Name | Description |
|---|---|
| Web Part Information | |
| Web Part Name | Enter the name of the web part. The name will be used for the class name (.cs). |
| Web Part Title | Enter the title of the web part (displayed in the web part gallery as web part title). |
| Web Part Description | Enter the description of the web part (displayed in the web part gallery as web part description). |
| Group | Enter the group in which the web part should appear in web part gallery. |
| QuickAdd Group | Enter the quick add group in which the web part should appear when the user wants to add a web part to a page. |
Creates a new webpart based on the SmartPart project.
The SharePoint web part which can host any ASP.NET web user control.
| Name | Description |
|---|---|
| Web Part Information | |
| Web Part Name | Enter the name of the web part. The name will be used for the class name (.cs). |
| Web Part Title | Enter the title of the web part (displayed in the web part gallery as web part title). |
| Web Part Description | Enter the description of the web part (displayed in the web part gallery as web part description). |
| Group | Enter the group in which the web part should appear in web part gallery. |
| QuickAdd Group | Enter the quick add group in which the web part should appear when the user wants to add a web part to a page. |
This recipe adsda an Ajax enabled webpart to your project.
Postback will be handled without loading the entire page.
Note: AJAX.net has to be installed on the server.
| Name | Description |
|---|---|
| Web Part Information | |
| Web Part Name | Enter the name of the web part. The name will be used for the class name (.cs). |
| Web Part Title | Enter the title of the web part (displayed in the web part gallery as web part title). |
| Web Part Description | Enter the description of the web part (displayed in the web part gallery as web part description). |
| Group | Enter the group in which the web part should appear in web part gallery. |
| QuickAdd Group | Enter the quick add group in which the web part should appear when the user wants to add a web part to a page. |
Windows SharePoint Services 3.0 uses the ASP.NET Web Part connection framework to connect Web Parts to each other programmatically.
Filter Web Parts use this connectivity support to provide filter criteria to other Web Parts.
Developers can now allow users to provide search or filter criteria.
Web Part connections are based on the concepts of "providers" and "consumers."
A provider Web Part supplies information to one or more consumer Web Parts through a programmatic interface. (MSDN)
| Name | Description |
|---|---|
| Web Part Information | |
| Web Part Name | Enter the name of the web part. The name will be used for the class name (.cs). |
| Web Part Title | Enter the title of the web part (displayed in the web part gallery as web part title). |
| Web Part Description | Enter the description of the web part (displayed in the web part gallery as web part description). |
| Group | Enter the group in which the web part should appear in web part gallery. |
| QuickAdd Group | Enter the quick add group in which the web part should appear when the user wants to add a web part to a page. |
Windows SharePoint Services 3.0 uses the ASP.NET Web Part connection framework to connect Web Parts to each other programmatically.
Filter Web Parts use this connectivity support to provide filter criteria to other Web Parts.
Developers can now allow users to provide search or filter criteria.
Web Part connections are based on the concepts of "providers" and "consumers."
A provider Web Part supplies information to one or more consumer Web Parts through a programmatic interface. (MSDN)
| Name | Description |
|---|---|
| Web Part Information | |
| Web Part Name | Enter the name of the web part. The name will be used for the class name (.cs). |
| Web Part Title | Enter the title of the web part (displayed in the web part gallery as web part title). |
| Web Part Description | Enter the description of the web part (displayed in the web part gallery as web part description). |
| Group | Enter the group in which the web part should appear in web part gallery. |
| QuickAdd Group | Enter the quick add group in which the web part should appear when the user wants to add a web part to a page. |
Windows SharePoint Services 3.0 uses the ASP.NET Web Part connection framework to connect Web Parts to each other programmatically.
Filter Web Parts use this connectivity support to provide filter criteria to other Web Parts.
Developers can now allow users to provide search or filter criteria.
Web Part connections are based on the concepts of "providers" and "consumers."
A provider Web Part supplies information to one or more consumer Web Parts through a programmatic interface. (MSDN)
| Name | Description |
|---|---|
| Web Part Information | |
| Web Part Name | Enter the name of the web part. The name will be used for the class name (.cs). |
| Web Part Title | Enter the title of the web part (displayed in the web part gallery as web part title). |
| Web Part Description | Enter the description of the web part (displayed in the web part gallery as web part description). |
| Group | Enter the group in which the web part should appear in web part gallery. |
| QuickAdd Group | Enter the quick add group in which the web part should appear when the user wants to add a web part to a page. |
As you store your business information in Windows SharePoint Services 3.0, you may encounter instances where your important business data does not conform to the field types included in Windows SharePoint Services, or situations where you want to further customize those general field types.
Windows SharePoint Services enables you to create custom field types.
These custom fields can include custom data validation and custom field rendering.
You can also customize the way that variable properties of your custom field types are processed and rendered when users set property variables and create new columns that are based on your custom field type.
This recipe adds a simple Field Type to your project.
| Name | Description |
|---|---|
| Field Type Name | Required Text. Name of the Field Type. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Parent Type | Required Type. The parent field type from which this type will inherit. |
| Display Name | Required Text. The display name for this field type. |
| Description | Required Text. Longer description about the purpose of the field type (will be displayed in "Create Column" next to the field selector). |
As you store your business information in Windows SharePoint Services 3.0, you may encounter instances where your important business data does not conform to the field types included in Windows SharePoint Services, or situations where you want to further customize those general field types.
Windows SharePoint Services enables you to create custom field types.
These custom fields can include custom data validation and custom field rendering.
You can also customize the way that variable properties of your custom field types are processed and rendered when users set property variables and create new columns that are based on your custom field type.
This recipe adds a MultiColumn Field Type to your project.
| Name | Description |
|---|---|
| Field Type Name | Required Text. Name of the Field Type. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Description | Required Text. Longer description about the purpose of the field type (will be displayed in "Create Column" next to the field selector). |
| Display Name in column 'Type' | Required Text. The display name for this field type. |
As you store your business information in Windows SharePoint Services 3.0, you may encounter instances where your important business data does not conform to the field types included in Windows SharePoint Services, or situations where you want to further customize those general field types.
Windows SharePoint Services enables you to create custom field types.
These custom fields can include custom data validation and custom field rendering.
You can also customize the way that variable properties of your custom field types are processed and rendered when users set property variables and create new columns that are based on your custom field type.
This recipe adds a simple Field Type to your project.
| Name | Description |
|---|---|
| Field Type Name | Required Text. Name of the Field Type. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Description | Required Text. Longer description about the purpose of the field type (will be displayed in "Create Column" next to the field selector). |
| Display Name in column 'Type' | Required Text. The display name for this field type. |
As you store your business information in Windows SharePoint Services 3.0, you may encounter instances where your important business data does not conform to the field types included in Windows SharePoint Services, or situations where you want to further customize those general field types
Windows SharePoint Services enables you to create custom field types.
These custom fields can include custom data validation and custom field rendering.
You can also customize the way that variable properties of your custom field types are processed and rendered when users set property variables and create new columns that are based on your custom field type.
This recipe adds a simple Field Type to your project.
| Name | Description |
|---|---|
| Field Type Name | Required Text. Name of the Field Type. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Description | Required Text. Longer description about the purpose of the field type (will be displayed in "Create Column" next to the field selector). |
| Display Name in column 'Type' | Required Text. The display name for this field type. |
As you store your business information in Windows SharePoint Services 3.0, you may encounter instances where your important business data does not conform to the field types included in Windows SharePoint Services, or situations where you want to further customize those general field types.
Windows SharePoint Services enables you to create custom field types.
These custom fields can include custom data validation and custom field rendering.
You can also customize the way that variable properties of your custom field types are processed and rendered when users set property variables and create new columns that are based on your custom field type.
This recipe adds a simple Field Type to your project.
| Name | Description |
|---|---|
| Field Type Name | Required Text. Name of the Field Type. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Description | Required Text. Longer description about the purpose of the field type (will be displayed in "Create Column" next to the field selector). |
| Display Name in column 'Type' | Required Text. The display name for this field type. |
As you store your business information in Windows SharePoint Services 3.0, you may encounter instances where your important business data does not conform to the field types included in Windows SharePoint Services, or situations where you want to further customize those general field types.
Windows SharePoint Services enables you to create custom field types.
These custom fields can include custom data validation and custom field rendering.
You can also customize the way that variable properties of your custom field types are processed and rendered when users set property variables and create new columns that are based on your custom field type.
This recipe adds a simple Field Type to your project.
| Name | Description |
|---|---|
| Field Type Name | Required Text. Name of the Field Type. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Description | Required Text. Longer description about the purpose of the field type (will be displayed in "Create Column" next to the field selector). |
| Display Name in column 'Type' | Required Text. The display name for this field type. |
As you store your business information in Windows SharePoint Services 3.0, you may encounter instances where your important business data does not conform to the field types included in Windows SharePoint Services, or situations where you want to further customize those general field types.
Windows SharePoint Services enables you to create custom field types.
These custom fields can include custom data validation and custom field rendering.
You can also customize the way that variable properties of your custom field types are processed and rendered when users set property variables and create new columns that are based on your custom field type.
This recipe adds a simple Field Type to your project.
| Name | Description |
|---|---|
| Field Type Name | Required Text. Name of the Field Type. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Description | Required Text. Longer description about the purpose of the field type (will be displayed in "Create Column" next to the field selector). |
| Display Name in column 'Type' | Required Text. The display name for this field type. |
As you store your business information in Windows SharePoint Services 3.0, you may encounter instances where your important business data does not conform to the field types included in Windows SharePoint Services, or situations where you want to further customize those general field types.
Windows SharePoint Services enables you to create custom field types.
These custom fields can include custom data validation and custom field rendering.
You can also customize the way that variable properties of your custom field types are processed and rendered when users set property variables and create new columns that are based on your custom field type.
This recipe adds a simple Field Type to your project.
| Name | Description |
|---|---|
| Field Type Name | Required Text. Name of the Field Type. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Description | Required Text. Longer description about the purpose of the field type (will be displayed in "Create Column" next to the field selector). |
| Display Name in column 'Type' | Required Text. The display name for this field type. |
The publishing site definition creates a site with the publishing infrastructure and publishing site feature enabled and provides functionalities for web content management.
It creates three features which are required to activate the several components of the publishing site.
| Name | Description |
|---|---|
| Site Template settings | |
| Name | Required Text. Specify the name of the folder which will be created in folder SiteTemplates. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Title | Required Text. Title of the site template as it appears in the selection of Create Site dialog. Limited to 255 characters. |
| ID | Required Number. Id of the site template. Should be unique on the farm and greater than 10000. |
| Description | Required Text. Longer description of the purpose of this site definition. |
| Display Category | Required Text. Title of the cateogry in which the site definition should appear in the Create Site dialog. Limited to 255 characters. |
| Master Page Settings | |
| Name | Required Text. Name of the Master Page. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Title | Required Text. Title (friendly name) of the Page Layout. Limited to 255 characters. |
| Description | Optional Text. Description of the Master Page. |
| Page Layout Settings | |
| Page Layout Content Type | Required Content Type. Content Type of this Page Layout. |
| Name | Required Text. Name of the Page Layout class file. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Title | Required Text. Title (friendly name) of the Page Layout. Limited to 255 characters. |
| Description | Optional Text. Description of the Page Layout. |
| Options | |
| Create Provisioning XML | Optional Boolean. If TRUE creates a file named Portal.XML with XML data for the creation of subsites after provisioning this site template. |
| Create Provisioning Handler (.cs) | Optional Boolean. If TRUE creates a cs.file for handling the event of provisioning. |
| Hidden | Optional Boolean. If TRUE hides the site definition from the Create Site dialog. Creation of sites with this definition through code will be still possible. |
| Allow global Feature associations | Optional Boolean. If TRUE the site definition is allowed to be associated to global features. |
| Root Web Only | Optional Boolean. If TRUE the site created from the configuration can only exist as the root Web site in a site collection. This attribute is not enforced in site templates (.stp files). |
| Sub Web Only | Optional Boolean. If TRUE tthe site created from the configuration can only exist as a subsite within a site collection. |
| Name | Description |
|---|---|
| Master Page Settings | |
| Name | Required Text. Name of the Master Page. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Title | Required Text. Title (friendly name) of the Master Page. Limited to 255 characters. |
| Description | Optional Text. Description of the Master Page. |
The recipe creates a page layout, which can be made available in a publising site for a specific content type (i.e. news).
Page layouts dictate, along with master pages, the overall look and feel of your SharePoint Publishing site.
Master pages contain controls that are shared across multiple page layouts, such as navigation, search, or language-preference for multilingual sites.
Page layouts contain field controls and Web Parts.
| Name | Description |
|---|---|
| Page Layout Settings | |
| Page Layout Content Type | Required Content Type. Content Type of this Page Layout. |
| Name | Required Text. Name of the Page Layout class file. Limited to 255 characters. The name has to be unique within the project of this solution. It should not contain whitespaces or special characters. |
| Title | Required Text. Title (friendly name) of the Page Layout. Limited to 255 characters. |
| Description | Optional Text. Description of the Page Layout. |
This recipes imports a single .wsp file from the local system into an existing project. To run the recipe an existing customization project is needed.
| Name | Description |
|---|---|
| WSP File | Select the wsp file to be imported into the current project |
This recipes imports a single .wsp file from the local SharePoint farm into an existing project. To run the recipe an existing customization project is needed.
| Name | Description |
|---|---|
| WSP Solution | Select the wsp from the local farm for the import |
| Name | Description |
|---|---|
| Content Type Settings | |
| ID | Required Text. Specifies the content type ID of the content type. |
| Name | Required Text. Specifies the content type name. |
| Description | Optional Text. Provides a description for the content type, to display in the Windows SharePoint Services user interface. |
| Group | Optional Text. Specifies the content type group to which the content type is assigned. Content type groups are user-defined groups that help you organize your columns into logical categories. |
| Version | Reserved for future use. |
| Hidden | Optional Boolean. TRUE to define the content type as hidden. If you define a content type as hidden, Windows SharePoint Services does not display that content type on the New button in list views. If you do not include this attribute, Windows SharePoint Services treats the content type as if this attributes was set to FALSE. |
| Read Only | Optional Boolean. TRUE to define the content type as read-only. If you do not include this attribute, Windows SharePoint Services treats the content type as if this attributes was set to FALSE. |
| Sealed | Optional Boolean. TRUE to define the content type as sealed. You must have site collection administrator rights to unseal and edit a content type defined as sealed. If you do not include this attribute, Windows SharePoint Services treats the content type as if this attributes was set to FALSE. |
| Name | Description |
|---|---|
| Site Column Settings | |
| ID | |
| Name | |
| Display Name | |
| Description | |
| Group | |
| Name | Description |
|---|---|
| List Template Settings | |
| Name | Required Text. Specifies the internal name of the list definition. No spaces or special characters can be used. This name is also used to find the folder that contains the Schema.xml file that defines the schema in use. |
| DisplayName | Required Text. Specifies the display name of the list definition. |
| Description | Optional Text. Provides a description of the list definition. |
| Type | Optional Integer. Provides a unique identifier for the template. This identifier must be unique within the feature, but need not be unique across all feature definitions or site definitions. |
| Category | Optional Text. Specifies the category with which to associate lists created through the list definition. |
| Sequence | Optional Integer. Specifies the ordering priority to use for the list template on the Create page. If Sequence is not set, the template appears last in arbitrary order with any other templates that also lack a Sequence value. Two templates that specify the same sequence are sorted together in an arbitrary order. |
| Options | |
| Default in new sites | Optional Boolean. TRUE to specify that new SharePoint sites will include this list. |
| OnQuickLaunch | Optional Boolean. TRUE to display lists created from the list definition on the QuickLaunch bar. |
| DisableAttachments | Optional Boolean. TRUE to specify that users can attach files to items in lists created through the template; otherwise, FALSE. |
| DisallowContentTypes | Optional Boolean. TRUE to specify that content types can be managed on lists created through the template; otherwise, FALSE. |
| VersioningEnabled | Optional Boolean. TRUE to specify that versioning is enabled by default in lists created through the template; otherwise, FALSE. |
| FolderCreation | Optional Boolean. TRUE to enable folder creation within the list and to specify that the New Folder command appears on the New menu in list views; otherwise, FALSE. |
| EnableModeration | Optional Boolean. TRUE to specify that content approval is enabled by default in lists created through the template; otherwise, FALSE. |
| Hidden | Optional Boolean. TRUE to specify that the list definition is not available on the Create page for creating lists. |
| HiddenList | Optional Boolean. TRUE to specify that a list created from the list definition is hidden. |
| Advanced | |
| Security Read | Optional Text. Defines the item-level permissions in the list for users with sufficient permission to read or edit list items. The SecurityBits attribute contains a 2-digit string. The first digit in the string controls the read access; the second digit in the string controls the edit access. |
| Security Edit | Optional Text. Defines the item-level permissions in the list for users with sufficient permission to read or edit list items. The SecurityBits attribute contains a 2-digit string. The first digit in the string controls the read access; the second digit in the string controls the edit access. |
| Name | Optional URL. Specifies a URL to an icon used to represent a list. |
| Name | Description |
|---|---|
| List Instance Settings | |
| Title | Required Text. Title of the list in the schema. |
| Description | Optional Text. Contains a description of the list. |
| Url | Required Text. Returns the site-relative URL at which to place the list. |
| Options | |
| RootWebOnly | Optional Boolean. TRUE to specify that the list created from the definition exists only in the root Web site of a site collection. |
| OnQuickLaunch | Optional Boolean. TRUE to display lists created from the list definition on the Quick Launch bar. |
| QuickLaunchUrl | Optional Text. Specifies the URL of the view page to open for the list through Quick Launch navigation. |
| Id | Required Text. Specifies a unique identifier for the list instance. The integer must be unique across the Feature definition. |
| Name | Description |
|---|---|
| Page Name | Enter name of the application page without extension (.aspx) |
| Title | Enter the title of page (displayed on top of the page and in the title of the html). |
| Description | Enter the description of page (displayed on top of the page). |
| Allow Anonymous Access |
| Name | Description |
|---|---|
| Name | Enter the name of the application page (without .aspx). |
| Title | Enter the title of page (displayed on top of the page and in the title of the html). |
| Description | Enter the description of page (displayed on top of the page). |
| Name | Description |
|---|---|
| Name | Enter the name of the application page (without .aspx). |
| Title | Enter the title of page (displayed on top of the page and in the title of the html). |
| Description | Enter the description of page (displayed on top of the page). |
| Name | Description |
|---|---|
| Name | Enter the name of the control (used as class name of the control). |
| Name | Description |
|---|---|
| Name | Required String. Enter the name of the web service. |
| Description | Required String. Enter the description of the web service. |
| Name | Description |
|---|---|
| Name | Required String. Enter the name of the web service. |
| Description | Required String. Enter the description of the web service. |
* AdditionalPageHead
* GlobalSiteLink0
* GlobalSiteLink1
* GlobalSiteLink2
* SmallSearchInputBox
* TopNavigationDataSource
* PublishingConsole
* QuickLaunchDataSource
| Name | Description |
|---|---|
| Delegate Control Settings | |
| Name | Required Text. Specifies the name of the control. |
| Sequence | Optional Integer. Specifies the sequence number for the control, which determines whether the control is added to the control tree for a page. The control with the lowest sequence number is added to the tree. |
| Id | Optional Text. Specifies the ID of the control, for example, "SmallSearchInputBox". |
* AdditionalPageHead
* GlobalSiteLink0
* GlobalSiteLink1
* GlobalSiteLink2
* SmallSearchInputBox
* TopNavigationDataSource
* PublishingConsole
* QuickLaunchDataSource
| Name | Description |
|---|---|
| Delegate Control Settings | |
| Name | Required Text. Specifies the name of the control. |
| Sequence | Optional Integer. Specifies the sequence number for the control, which determines whether the control is added to the control tree for a page. The control with the lowest sequence number is added to the tree. |
| Id | Optional Text. Specifies the ID of the control, for example, "SmallSearchInputBox". |
| Name | Description |
|---|---|
| HttpHandler Settings | |
| Http Handler Name | Enter the class name of the Http handler. |
| Http Handler Path | Enter path for which urls the http handler should be called, e.g. */_vti_bin/_vti_aut/author.dll |
The Http module assembly needs to be registered in web.config. Therefore the Http module needs to be added to a feature with scope WebApplication and the necessary activation code is added to the feature receiver of the selected feature.
| Name | Description |
|---|---|
| HttpModule Settings | |
| Http Module Name | |
| Name | Description |
|---|---|
| Workflow Settings | |
| Name | Required Text. Specifies the workflow name that is displayed in the SharePoint Foundation interface. The workflow name can be up to 256 characters long. |
| Title | Optional Text. |
| Description | Optional Text. Specifies the workflow description to be displayed in the SharePoint Foundation interface. The workflow description can be up to 256 characters long. |
| Id | Required Text. Specifies the globally unique identifier (GUID) for the workflow. |
In some occasions modifications of the web.config are required when activating a feature i.e. defining web application wide configuration settings.
A web.config modification feature can be utilized to make the neccessary configurations and undo them when the feature is deactivated.
| Name | Description |
|---|---|
| Class Name | Required Text. Name of the SPWebProvisioningProvider. |
Windows SharePoint Services 3.0 lets you create custom jobs that are executed at set intervals. These jobs, known as timer jobs, are similar to those tasks that you can create in any version of Windows by using the Task Scheduler application. This capability is useful for scheduled process jobs because you keep everything in Windows SharePoint Services rather than create a console .exe file that is configured to run at set intervals by using the Windows Task Scheduler. The major benefits to using the Windows SharePoint Services timer service compared to using Windows Task Scheduler is that the timer service knows the topology of the Office SharePoint Server farm, and that you can load balance the jobs across all the servers in the farm or tie them to specific servers that are running particular services. (Source: MSDN).
You can run the timer job e.g. in a feature receiver during feature activation or deactivation.
Use the following code to start the timer job.
<code>
namespace ApplicationName.WSPSolution
{
public partial class EmptyFeature1FeatureReceiver : SPFeatureReceiver
{
public override void FeatureActivated(SPFeatureReceiverProperties properties)
{
TimerJob1.StartJob("param Value 1", "param Value 2");
}
}
}
</code>
| Name | Description |
|---|---|
| Timer Job Class | Required Text. Name of the Timer Job class file. |
Alerts are an e-mail subscription notification service in Windows SharePoint Services 3.0. Users can create alerts to be notified of changes to list items (item level alert), documents, lists (list level alert), or document libraries. Alerts in Windows SharePoint Services 3.0 are quite flexible; when you create an alert you have options such as when to be notified and what kind of changes will trigger the alert. Alerts can be managed by users and administrators and customized by developers.
After an alert has been created, changes that fit the criteria specified in the alert are recorded in an event log. Alerts are generated by a timer job that reads the event log, formats the alert email using an alert template, and then sends that email out to the user.
Alert templates are stored in Alerttemplates.xml. Alerttemplates.xml defines the format, contents, and properties used to create alert messages from each list type in Windows SharePoint Services 3.0. Developers can customize alerts by modifying a copy of Alerttemplates.xml and then loading the customized alert templates using the stsadm -o updatealerttemplates command.
(Source: Microsoft SharePoint Developer Documentation Team Blog)
This recipe creates such an alert template.
GAC assemblies are deployed to the GAC and are globally available. In manifest.xml they are located here:
<Solution xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SolutionId="00000000-0000-0000-0000-000000000000" ResetWebServer="True" xmlns="http://schemas.microsoft.com/sharepoint/">
<Assemblies>
<Assembly Location="WebPartResources.dll" DeploymentTarget="GlobalAssemblyCache">
<SafeControls>
<SafeControl Assembly="WebPartResources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6763c0814d065309" Namespace="WebPartResources" TypeName="*" Safe="True" />
</SafeControls>
</Assembly>
</Assemblies>
</Solution>
| Name | Description |
|---|---|
| Source Files |
WebApplication assemblies are added to the project to folder 80/BIN. In manifest.xml these files are located here:
<Solution xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SolutionId="00000000-0000-0000-0000-000000000000" ResetWebServer="True" xmlns="http://schemas.microsoft.com/sharepoint/">
<Assemblies>
<Assembly Location="WebPartResources.dll" DeploymentTarget="WebApplication">
<SafeControls>
<SafeControl Assembly="WebPartResources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6763c0814d065309" Namespace="WebPartResources" TypeName="*" Safe="True" />
</SafeControls>
</Assembly>
</Assemblies>
</Solution>
After deployment these files get deployed to folder \inetpub\wwwroot\wss\VirtualDirectories\80\bin
| Name | Description |
|---|---|
| Source Files |
Class resource files are added to the project in folder 80/BIN/wpresources/[NameOfAssembly]. In manifest.xml these files are deployed to
<Solution xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SolutionId="00000000-0000-0000-0000-000000000000" ResetWebServer="True" xmlns="http://schemas.microsoft.com/sharepoint/">
<Assemblies>
<Assembly Location="WebPartResources.dll" DeploymentTarget="GlobalAssemblyCache">
<SafeControls>
<SafeControl Assembly="WebPartResources, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6763c0814d065309" Namespace="WebPartResources" TypeName="*" Safe="True" />
</SafeControls>
<ClassResources>
<ClassResource Location="testfile.gif" FileName="testfile.gif" />
</ClassResources>
</Assembly>
</Assemblies>
</Solution>
After deployment these files are located here.
For assemblies in GAX: C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\WebPartResources\1.0.0.0__6763c0814d065309\testfile.gif
For assemblies in BIN: C:\inetpub\wwwroot\wss\VirtualDirectories\80\wpresources\1.0.0.0__6763c0814d065309\testfile.gif
In code you can access there files:
SPWeb currentWeb = SPControl.GetContextWeb(Context);
Type currentType = this.GetType();
string classResourcePath = SPWebPartManager.GetClassResourcePath(currentWeb, currentType);
image = new Image();
image.ImageUrl = classResourcePath + "/testfile.gif";
The file could also be access via URL:
http://servername/_wpresources/[assemblyname]/testfile.gif
| Name | Description |
|---|---|
| Source Files |
Application resource files are mainly used for .resx files in application pages. They are deployed to folder VirtualDirectories\80\App_GlobalResources of a web application.
This functionality only works in SharePoint 2010. In earlier versions files could not be deployed to VirtualDirectories\80\App_GlobalResources with wsp solutions.
In SharePoint 2010 application resource files are deployed with wsp solutions to folder 12/CONFIG/Resources/ and copied to VirtualDirectories\80\App_GlobalResources with stsadm -o copyappbincontent.
Alternatively these files could be copied with a feature receiver:
- For Central Administration resources (and sitemaps): SPWebService.AdministrationService.ApplyApplicationContentToLocalServer();
- For Application Page resources (and sitemaps): SPFarm.Local.Services.GetValue().ApplyApplicationContentToLocalServer();
In the Visual Studio project application resource files are located here:
80/BIN/resources
Application resource files are located in manifest.xml here:
<Solution xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" SolutionId="00000000-0000-0000-0000-000000000000" ResetWebServer="True" xmlns="http://schemas.microsoft.com/sharepoint/">
<ApplicationResourceFiles>
<ApplicationResourceFile Location="80\resources\testfile.gif/>
</ApplicationResourceFiles>
<!-- new in SharePoint 2010 -->
<App_GlobalResources>
<App_GlobalResourceFile Location="80\resources\testfile.gif/>
</App_GlobalResources>
</Solution>
These files are deployed to C:\inetpub\wwwroot\wss\VirtualDirectories\80\App_GlobalResources in a webapplication.
| Name | Description |
|---|---|
| Source Files |
The recipes adds a image at the appropriate location within the project for deployment to /_images/
| Name | Description |
|---|---|
| Source Files |
The recipes adds a file at the appropriate location within the project for deployment to /_layouts/.
| Name | Description |
|---|---|
| Source Files |
| Name | Description |
|---|---|
| Silverlight Application Settings | |
| Generated Silverlight Application Name | Required String. Generated name of the Silverlight application. |
| Silverlight Application Name | Required Text. Name of the Silverlight application. |
| Silverlight Version | Required Text. Target Silverlight version. |
| WebPart Title | Required Text. Title of the webpart which displays the Silverlight application. |
| WebPart Description | Required Text. Description of the webpart which displays the Silverlight application. |
| Name | Description |
|---|---|
| Silverlight Application Settings | |
| Generated Silverlight Application Name | Required String. Generated name of the Silverlight application. |
| Silverlight Application Name | Required Text. Name of the Silverlight application. |
| Silverlight Version | Required Text. Target Silverlight version. |
| WebPart Title | Required Text. Title of the webpart which displays the Silverlight application. |
| WebPart Description | Required Text. Description of the webpart which displays the Silverlight application. |
| Name | Description |
|---|---|
| Silverlight Application Settings | |
| Generated Silverlight Application Name | Required String. Generated name of the Silverlight application. |
| Silverlight Application Name | Required Text. Name of the Silverlight application. |
| Silverlight Version | Required Text. Target Silverlight version. |
| WebPart Title | Required Text. Title of the webpart which displays the Silverlight application. |
| WebPart Description | Required Text. Description of the webpart which displays the Silverlight application. |
| Name | Description |
|---|---|
| Silverlight Application Settings | |
| Generated Silverlight Application Name | Required String. Generated name of the Silverlight application. |
| Silverlight Application Name | Required Text. Name of the Silverlight application. |
| Silverlight Version | Required Text. Target Silverlight version. |
| WebPart Title | Required Text. Title of the webpart which displays the Silverlight application. |
| WebPart Description | Required Text. Description of the webpart which displays the Silverlight application. |
The custom cmdlet can be used in powershell scripts (.ps1) to run adminstration jobs for instance, e.g. 'Start-MyCustomJob'.
Use command "Get-Help Start-MyCustomJob' to display a detailed help information.
Use command "Get-Command Start-MyCustomJob' to display general information.
| Name | Description |
|---|---|
| Generated Command | Optional String. Displays the final command |
| Verb | Required String. Enter the verb e.g. "Start", "Stop", "Backup". |
| Noun | Required String. Enter the operation or object type e.g. "SPSiteByName". |
| Description | Required String. Enter the a short description of the cmdlet (used in help file). |
The custom cmdlet can be used in powershell scripts (.ps1) to handle objects e.g. SPList or SPSite within a pipe.
Use command "Get-Help Get-MyCustomList' to display a detailed help information.
Use command "Get-Command Get-MyCustomList' to display general information.
| Name | Description |
|---|---|
| General Settings | |
| Generated Command | Optional String. Displays the final command |
| Verb | Required String. Select the verb e.g. "Get", "New", "Set", "Delete". |
| Noun | Required String. Enter the operation or object type e.g. "SPSiteByName". |
| Description | Required String. Enter the a short description of the cmdlet (used in help file). |
| Pipe Object Settings | |
| Object Type | Optional String. Enter the existing type of object that should be used for pipe binding (e.g. SPList, SPWeb). |
The recipe deploys the selected project(s) to the local SharePoint farm.
If the wsp solution contains web application resources the solution is deployed to a specific web application. This specific web application can be configured with "Configure Deployment".
The recipe deploys the selected project(s) to the local SharePoint farm.
If the wsp solution contains web application resources the solution is deployed to a specific web application. This specific web application can be configured with "Configure Deployment".
| Name | Description |
|---|---|
| Worker Process | Select the worker process. |
| Name | Description |
|---|---|
| Application Pool | Select the application pool. |
This recipe is helpfull if hidden features are deployed and a feature needs to be deactivated via stsadm -o activatefeature.
| Name | Description |
|---|---|
| Feature Id | Select the feature to activate. |
| Url |
This recipe is helpfull if hidden features are deployed and a feature needs to be activated via stsadm -o activatefeature.
| Name | Description |
|---|---|
| Feature Id | Select the feature to activate. |
| Url |
Uninstalls the selected feature. This is useful if e.g. by corrupt solution deployments some features are still registered in the database, but the feature folder is already removed.
| Name | Description |
|---|---|
| Feature Id | Select the feature to activate. |
This recipe provides a shortcut to the debugging site of the current selected project.
This recipe provides a shortcut to the local Central Administration in SharePoint, e.g. create a new site collection or check farm features.
This recipe provides a shortcut to the Solution Management in SharePoint, e.g. to check which solutions are deployed or undeployed.
In several dialogs within the wizards a list of SharePoint elements is provided to the user (e.g. list of available features, content types etc.). The values for this list are taken from the file SharePointConfiguration.xml, which should be located in the current solution.<br/><br/>This recipe recreates the file SharePointConfiguration.xml with the data from the local computer.
| Name | Description |
|---|---|
| Build Target | Name of the target to be executed. |
The recipe removes a file from source control to avoid conflicts during build.
The assembly name of often needed during development, e.g. to specify the assembly of a feature receiver in the feature.xml.
| Name | Description |
|---|---|
| Assembly Name |
| Name | Description |
|---|---|
| SharePoint Version |
Recipe changes a .tt file to a static file. This is usefull e.g. for transforming manifest.tt to manifest.xml to enable editing of manifest.xml.
The recipe opens the selected file in browser. The recipe is useful to open deployed file in SharePoint directly from within Visual Studio.
Recipe displays the properties in visual studio of the current item. This is used for debugging purposes within Visual Studio.
Displays the about dialog with information about the SPSF.
| Name | Description |
|---|
Migrates the whole solution to the current installed version of SharePoint Software Factory.
| Name | Description |
|---|---|
| Application Settings | |
| Company Name | Required String. Specifies the company name of the SharePoint application, used in copyright statements. |
| Application Name | Required String. Specifies the name of the SharePoint application, given by the name of the VS solution name. |
| Application Version | Required String. Specifies the version of the SharePoint application. |
| SharePoint Version | Required String. Target SharePoint version (12 or 14). |
| Local Site for debugging | Optional Url. Name of a SharePoint site for local debugging. |
| Code Quality | |
| Check code with FxCop in 'Release' build | Optional Boolean. If true Microsoft FxCop will be executed during the 'Release' build to check the complied code against certain coding rules. Additionally a SharePoint specific FxCop settings file will be added to the solution. |
| Check code with StyleCop in 'Release' build | Optional Boolean. If true Microsoft StyleCop will be executed during the 'Release' build to check the C# source code against certain style rules. Additionally a SharePoint specific StyleCop settings file will be added to the solution. |
| Check code with ShareCop in 'Release' build | Optional Boolean. If true SharePoint Code Analysis will be executed during the 'Release' build to check code against certain style rules. Additionally a SharePoint specific ShareCop settings file will be added to the solution. |
| Check code with SPDisposeChecker in 'Release' build | Optional Boolean. If true SharePoint Dispose Checker will be executed during the 'Release' build to check the code for potential memory leaks. |
Migrates the selected project to the current installed version of SharePoint Software Factory.
| Name | Description |
|---|
Checks Visual Studio projects for possible problems. This could be:
- Output of .TT-Files like mainfest.tt should not be under source control. Otherwise these files cannot be generated during build
- Hidden files in folder SharePointRoot will be included into the wsp file without intention
Configures the generell settings of the project.
| Name | Description |
|---|---|
| Local Site for debugging | Optional Url. Name of a SharePoint site for local debugging. |
| Local Site for testing | Optional Url. Name of a SharePoint site for local testing. |
| SharePoint Version | Required String. Specifies the target SharePoint version. |
| Generate .resx files automatically | Optional Boolean. If true .resx files are generated automatically. |
| Generate manifest.xml automatically | Optional Boolean. If true the files manifest.xml and makecab.ddf are generated automatically. |
Configures the generell settings of the project.
| Name | Description |
|---|---|
| DeploymentTarget |
Configures the generell settings of the project.
| Name | Description |
|---|---|
| DeploymentTarget | |
| Sandboxed solution | Optional Boolean. If checked a sandboxed solutions will be created. |
| ID | ToolTip | Default |
|---|---|---|
| type | Property type | int |
| property | Property name | MyProperty |
| field | The variable backing this property | myVar |
private int myVar;
[Input()]
public int MyProperty
{
get { return myVar;}
set { myVar = value;}
}
$end$
Torsten Mandelkow
| ID | ToolTip | Default |
|---|---|---|
| type | Property type | int |
| property | Property name | MyProperty |
| field | The variable backing this property | myVar |
using (SPWeb oWebsite = SPContext.Current.Site.AllWebs["MySite"])
{
SPFieldCollection collFields = oWebsite.Lists["MyList"].Fields;
string strNewField = "<Field Type=\"Calculated\" " +
"DisplayName=\"New_Field_Display_Name\" ResultType=\"Currency\" " +
"ReadOnly=\"TRUE\" Name=\"New_Field_Internal_Name\">" +
"<Formula>=Currency_Field_Name*100</Formula>" +
"<FieldRefs><FieldRef Name=\"Currency_Field_Name\" />" +
"</FieldRefs></Field>";
collFields.AddFieldAsXml(strNewField);
}
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ms457586.aspx
| ID | ToolTip | Default |
|---|---|---|
| type | Property type | int |
| property | Property name | MyProperty |
| field | The variable backing this property | myVar |
using (SPWeb oWebsite = new SPSite("http://MyServer/sites/MySiteCollection/MyWebSite").OpenWeb())
{
SPList oList = oWebsite.GetList("MyWebSite/Lists/MyList");
SPFieldCollection collFields = oWebsite.Fields;
string strNewColumn = collFields.Add("MyNewColumn", SPFieldType.Text, false);
SPFieldLink oFieldLink = new SPFieldLink(fields[strNewColumn]);
SPContentType oContentType = oList.ContentTypes["Specification"];
oContentType.FieldLinks.Add(oFieldLink);
oContentType.Update(true);
}
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ms442695.aspx
| ID | ToolTip | Default |
|---|---|---|
| type | Property type | int |
| property | Property name | MyProperty |
| field | The variable backing this property | myVar |
using (SPWeb oWebsite = SPContext.Current.Site.AllWebs["MySite"])
{
SPFieldCollection collFields = oWebsite.Lists["MyList"].Fields;
collFields.Add("MyField", Microsoft.SharePoint.SPFieldType.Text,
true);
}
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ms472869.aspx
| ID | ToolTip | Default |
|---|---|---|
| type | Property type | int |
| property | Property name | MyProperty |
| field | The variable backing this property | myVar |
using (SPWeb oWebsite = new SPSite("http://MyServer/sites/MySiteCollection/MyWebSite").OpenWeb())
{
SPList oList = oWebsite.GetList("MyWebSite/Lists/MyList");
SPFieldCollection collFields = oWebsite.Fields;
string strNewColumn = collFields.Add("MyNewColumn", SPFieldType.Text, false);
SPFieldLink oFieldLink = new SPFieldLink(fields[strNewColumn]);
SPContentType oContentType = oList.ContentTypes["Specification"];
oContentType.FieldLinks.Add(oFieldLink);
oContentType.Update(true);
}
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ms442695.aspx
| ID | ToolTip | Default |
|---|---|---|
| type | Property type | int |
| property | Property name | MyProperty |
| field | The variable backing this property | myVar |
SPSite oSiteCollection = SPContext.Current.Site;
SPList oList =
oSiteCollection.AllWebs["Site_Name"].Lists["List_Name"];
SPField oField = oList.Fields["Field_Name"];
oField.DefaultValue = "Default_Value";
oField.Description = "Description";
oField.Title = "New_Field_Title";
oField.Update();
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ms416125.aspx
| ID | ToolTip | Default |
|---|---|---|
| WebUrl | Url of SPWeb | http://MyServer/sites/MySiteCollection/MyWebSite |
| ListName | Name of the list | Shared Documents |
| AssemblyName | Full name of the assembly with the event receiver | Shared Documents |
| ClassName | Full name of the event receiver class | Namespace.ClassName |
| EventName | Name of the event | UniqueEventName |
| SequenceNumber | Integer value of sequence | 1000 |
| EventType | Type of the event to be registered | SPEventReceiverType.ItemAdded |
using (SPWeb oWebsite = new SPSite("http://MyServer/sites/MySiteCollection/MyWebSite").OpenWeb())
{
SPList list = web.Lists["Shared Documents"];
SPEventReceiverDefinition def = list.EventReceivers.Add();
def.Assembly = "Shared Documents";
def.Class = "Namespace.ClassName";
def.Name = "UniqueEventName";
def.Type = SPEventReceiverType.ItemAdded;
def.SequenceNumber = 1000;
def.Synchronization = SPEventReceiverSynchronization.Synchronous;
def.Update();
}
Torsten Mandelkow
| ID | ToolTip | Default |
|---|---|---|
| WebUrl | Url of SPWeb | http://MyServer/sites/MySiteCollection/MyWebSite |
| ListName | Name of the list | Shared Documents |
| EventName | Name of the event | UniqueEventName |
using (SPWeb oWebsite = new SPSite("http://MyServer/sites/MySiteCollection/MyWebSite").OpenWeb())
{
SPList list = web.Lists["Shared Documents"];
SPEventReceiverDefinitionCollection receivers = list.EventReceivers;
foreach (SPEventReceiverDefinition def in receivers)
{
if (def.Name == "UniqueEventName")
{
def.Delete();
}
}
}
Torsten Mandelkow
| ID | ToolTip | Default |
|---|---|---|
| type | Property type | int |
| property | Property name | MyProperty |
| field | The variable backing this property | myVar |
private int myVar;
[Input()]
public int MyProperty
{
get { return myVar;}
set { myVar = value;}
}
$end$
Torsten Mandelkow
| ID | ToolTip | Default |
|---|---|---|
| TemplateID | ID of the workflow | TemplateID |
| WebUrl | Url of SPWeb | http://MyServer/sites/MySiteCollection/MyWebSite |
| WorkflowTitle | Title of the workflow | Workflow |
using (SPWeb oWebsite = new SPSite("http://MyServer/sites/MySiteCollection/MyWebSite").OpenWeb())
{
Guid taskListID = oWebsite.Lists.Add("Tasks for workflow", "", SPListTemplateType.Tasks);
Guid historyListID = oWebsite.Lists.Add("History for workflow", "", SPListTemplateType.WorkflowHistory);
SPWorkflowTemplate template = oWebsite.WorkflowTemplates[TemplateID];
SPWorkflowAssociation association =
SPWorkflowAssociation.CreateWebAssociation(template,
"Workflow",
newSite.Lists[taskListID],
newSite.Lists[historyListID]);
oWebsite.AddWorkflowAssociation(association);
oWebsite.Site.WorkflowManager.StartWorkflow(
oWebsite,
association, "", SPWorkflowRunOptions.Synchronous);
}
Torsten Mandelkow
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonButton". | AppName.Button |
| alt | Optional. Alternative text for the button. | Button |
| labeltext | Optional. The text to label the control. | Button |
| tooltiptitle | Optional. The text that appears as the title of the tooltip. | Title |
| tooltipdescription | Optional. The text that appears in the body of the tooltip. | Description |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<Button
Id="Ribbon.AppName.Button"
Alt="Button"
Command="Ribbon.AppName.Button_command"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="Button"
Sequence="10"
TemplateAlias="o2"
ToolTipTitle="Title"
ToolTipDescription="Description"/>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458366.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. Identifies the control. The value can be a string representation of a GUID or a unique term, such as "Ribbon.Library.Share.NewRibbonCheckBox". | AppName.CheckBox |
| labeltext | Optional. The text to label the control. | Checkbox |
| alt | Optional. Alternative text for the checkbox. | |
| tooltiptitle | Optional. The text that appears as the title of the tooltip. | Title |
| tooltipdescription | Optional. The text that appears in the body of the tooltip. | Description |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<CheckBox
Id="Ribbon.AppName.CheckBox"
Command="Ribbon.AppName.CheckBox_command"
LabelText="Checkbox"
Alt=""
Sequence="10"
TemplateAlias="o2"
ToolTipTitle="Title"
ToolTipDescription="Description"/>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458368.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonColorPicker". | AppName.ColorPicker |
| alt | Optional. Alternative text for the button. | ColorPicker |
| labeltext | Optional. The text to label the control. | ColorPicker |
| tooltiptitle | Optional. The text that appears as the title of the tooltip. | ColorPicker |
| tooltipdescription | Optional. The text that appears in the body of the tooltip. | Description of ColorPicker |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<FlyoutAnchor
Id="Ribbon.AppName.ColorPicker"
Alt="ColorPicker"
Command="Ribbon.AppName.ColorPicker_command"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="ColorPicker"
Sequence="10"
ToolTipTitle="ColorPicker"
ToolTipDescription="Description of ColorPicker"
PopulateDynamically="false"
PopulateOnlyOnce="true"
PopulateQueryCommand="Ribbon.AppName.ColorPicker_Query_Command"
TemplateAlias="o2">
<Menu Id="Ribbon.AppName.ColorPicker.Menu">
<MenuSection
Id="Ribbon.AppName.ColorPicker.Menu.MenuSection"
Title="Custom ColorPicker">
<Controls Id="Ribbon.AppName.ColorPicker.Menu.MenuSection.Controls">
<ColorPicker
Id="Ribbon.AppName.ColorPicker.Menu.MenuSection.ColorPicker"
Command="Ribbon.AppName.ColorPicker.Menu.MenuSection.ColorPicker_CMD"
CommandPreview="Ribbon.AppName.ColorPicker.Menu.MenuSection.ColorPicker_PRE_CMD"
CommandRevert="Ribbon.AppName.ColorPicker.Menu.MenuSection.ColorPicker_REV_CMD" >
<Colors>
<Color Title="Light 1" Style="ms-rteThemeBackColor-1-0" DisplayColor="#ffffff" />
<Color Title="Dark 1" Style="ms-rteThemeBackColor-2-0" DisplayColor="#000000" />
<Color Title="Light 2" Style="ms-rteThemeBackColor-3-0" DisplayColor="#e9f5fa" />
<Color Title="Dark 2" Style="ms-rteThemeBackColor-4-0" DisplayColor="#33557b" />
<Color Title="Accent 1" Style="ms-rteThemeBackColor-5-0" DisplayColor="#00adee" />
<Color Title="Accent 2" Style="ms-rteThemeBackColor-6-0" DisplayColor="#ec008c" />
<Color Title="Accent 3" Style="ms-rteThemeBackColor-7-0" DisplayColor="#1d71b6" />
<Color Title="Accent 4" Style="ms-rteThemeBackColor-8-0" DisplayColor="#fd9f08" />
<Color Title="Accent 5" Style="ms-rteThemeBackColor-9-0" DisplayColor="#62ce33" />
<Color Title="Accent 6" Style="ms-rteThemeBackColor-10-0" DisplayColor="#fae032" />
<Color Title="Light 1 Lightest" Style="ms-rteThemeBackColor-1-1" DisplayColor="#f2f2f2" />
<Color Title="Dark 1 Lightest" Style="ms-rteThemeBackColor-2-1" DisplayColor="#7f7f7f" />
<Color Title="Light 2 Lightest" Style="ms-rteThemeBackColor-3-1" DisplayColor="#c1e3f1" />
<Color Title="Dark 2 Lightest" Style="ms-rteThemeBackColor-4-1" DisplayColor="#cfddeb" />
<Color Title="Accent 1 Lightest" Style="ms-rteThemeBackColor-5-1" DisplayColor="#c8f0ff" />
<Color Title="Accent 2 Lightest" Style="ms-rteThemeBackColor-6-1" DisplayColor="#ffc8e8" />
<Color Title="Accent 3 Lightest" Style="ms-rteThemeBackColor-7-1" DisplayColor="#cbe3f6" />
<Color Title="Accent 4 Lightest" Style="ms-rteThemeBackColor-8-1" DisplayColor="#feebcd" />
<Color Title="Accent 5 Lightest" Style="ms-rteThemeBackColor-9-1" DisplayColor="#e0f5d6" />
<Color Title="Accent 6 Lightest" Style="ms-rteThemeBackColor-10-1" DisplayColor="#fef8d6" />
<Color Title="Light 1 Lighter" Style="ms-rteThemeBackColor-1-2" DisplayColor="#d8d8d8" />
<Color Title="Dark 1 Lighter" Style="ms-rteThemeBackColor-2-2" DisplayColor="#595959" />
<Color Title="Light 2 Lighter" Style="ms-rteThemeBackColor-3-2" DisplayColor="#86c8e3" />
<Color Title="Dark 2 Lighter" Style="ms-rteThemeBackColor-4-2" DisplayColor="#a0bad8" />
<Color Title="Accent 1 Lighter" Style="ms-rteThemeBackColor-5-2" DisplayColor="#92e1ff" />
<Color Title="Accent 2 Lighter" Style="ms-rteThemeBackColor-6-2" DisplayColor="#ff91d2" />
<Color Title="Accent 3 Lighter" Style="ms-rteThemeBackColor-7-2" DisplayColor="#97c7ee" />
<Color Title="Accent 4 Lighter" Style="ms-rteThemeBackColor-8-2" DisplayColor="#fed89c" />
<Color Title="Accent 5 Lighter" Style="ms-rteThemeBackColor-9-2" DisplayColor="#c0ebad" />
<Color Title="Accent 6 Lighter" Style="ms-rteThemeBackColor-10-2" DisplayColor="#fef8d6" />
<Color Title="Light 1 Medium" Style="ms-rteThemeBackColor-1-3" DisplayColor="#bfbfbf" />
<Color Title="Dark 1 Medium" Style="ms-rteThemeBackColor-2-3" DisplayColor="#3f3f3f" />
<Color Title="Light 2 Medium" Style="ms-rteThemeBackColor-3-3" DisplayColor="#2c98c4" />
<Color Title="Dark 2 Medium" Style="ms-rteThemeBackColor-4-3" DisplayColor="#7098c4" />
<Color Title="Accent 1 Medium" Style="ms-rteThemeBackColor-5-3" DisplayColor="#5bd2ff" />
<Color Title="Accent 2 Medium" Style="ms-rteThemeBackColor-6-3" DisplayColor="#ff5abc" />
<Color Title="Accent 3 Medium" Style="ms-rteThemeBackColor-7-3" DisplayColor="#64abe6" />
<Color Title="Accent 4 Medium" Style="ms-rteThemeBackColor-8-3" DisplayColor="#fdc56a" />
<Color Title="Accent 5 Medium" Style="ms-rteThemeBackColor-9-3" DisplayColor="#b9de8c" />
<Color Title="Accent 6 Medium" Style="ms-rteThemeBackColor-10-3" DisplayColor="#fcec84" />
<Color Title="Light 1 Darker" Style="ms-rteThemeBackColor-1-4" DisplayColor="#a5a5a5" />
<Color Title="Dark 1 Darker" Style="ms-rteThemeBackColor-2-4" DisplayColor="#262626" />
<Color Title="Light 2 Darker" Style="ms-rteThemeBackColor-3-4" DisplayColor="#164c62" />
<Color Title="Dark 2 Darker" Style="ms-rteThemeBackColor-4-4" DisplayColor="#26405c" />
<Color Title="Accent 1 Darker" Style="ms-rteThemeBackColor-5-4" DisplayColor="#0081b2" />
<Color Title="Accent 2 Darker" Style="ms-rteThemeBackColor-6-4" DisplayColor="#b10069" />
<Color Title="Accent 3 Darker" Style="ms-rteThemeBackColor-7-4" DisplayColor="#155488" />
<Color Title="Accent 4 Darker" Style="ms-rteThemeBackColor-8-4" DisplayColor="#c27801" />
<Color Title="Accent 5 Darker" Style="ms-rteThemeBackColor-9-4" DisplayColor="#499b25" />
<Color Title="Accent 6 Darker" Style="ms-rteThemeBackColor-10-4" DisplayColor="#dbbf05" />
<Color Title="Light 1 Darkest" Style="ms-rteThemeBackColor-1-5" DisplayColor="#7f7f7f" />
<Color Title="Dark 1 Darkest" Style="ms-rteThemeBackColor-2-5" DisplayColor="#0c0c0c" />
<Color Title="Light 2 Darkest" Style="ms-rteThemeBackColor-3-5" DisplayColor="#081e27" />
<Color Title="Dark 2 Darkest" Style="ms-rteThemeBackColor-4-5" DisplayColor="#192a3e" />
<Color Title="Accent 1 Darkest" Style="ms-rteThemeBackColor-5-5" DisplayColor="#005677" />
<Color Title="Accent 2 Darkest" Style="ms-rteThemeBackColor-6-5" DisplayColor="#760046" />
<Color Title="Accent 3 Darkest" Style="ms-rteThemeBackColor-7-5" DisplayColor="#0e385b" />
<Color Title="Accent 4 Darkest" Style="ms-rteThemeBackColor-8-5" DisplayColor="#815001" />
<Color Title="Accent 5 Darkest" Style="ms-rteThemeBackColor-9-5" DisplayColor="#316819" />
<Color Title="Accent 6 Darkest" Style="ms-rteThemeBackColor-10-5" DisplayColor="#927f03" />
</Colors>
</ColorPicker>
</Controls>
</MenuSection>
</Menu>
</FlyoutAnchor>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458441.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.DynamicDropDown". | AppName.DynamicDropDown |
| alt | Optional. Alternative text for the button. | |
| labeltext | Optional. The text to label the control. | DynamicDropDown |
| tooltiptitle | Optional. The text that appears as the title of the tooltip. | Title |
| tooltipdescription | Optional. The text that appears in the body of the tooltip. | Description |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<DropDown
Id="Ribbon.AppName.DynamicDropDown"
Alt=""
Command="Ribbon.AppName.DynamicDropDown_command"
CommandMenuOpen="Ribbon.AppName.DynamicDropDown_MenuOpen_command"
CommandMenuClose="Ribbon.AppName.DynamicDropDown_MenuClose_command"
PopulateDynamically="true"
PopulateOnlyOnce="false"
PopulateQueryCommand="Ribbon.$tabName$.$groupName$.$controlID$_PopulateQuery_CMD"
Width="125px"
Sequence="10"
TemplateAlias="o2"
ToolTipTitle="Title"
ToolTipDescription="Description">
</DropDown>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458462.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.FlyoutAnchor". | AppName.FlyoutAnchor |
| alt | Optional. Alternative text for the control. | FlyoutAnchor |
| labeltext | Optional. The text to label the control. | FlyoutAnchor |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<FlyoutAnchor
Id="Ribbon.AppName.FlyoutAnchor"
Command="Ribbon.AppName.FlyoutAnchor_CMD"
Alt="FlyoutAnchor"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="FlyoutAnchor"
Sequence="10"
TemplateAlias="o2"
ToolTipTitle="FlyoutAnchor"
ToolTipDescription="FlyoutAnchor">
<Menu Id="Ribbon.AppName.FlyoutAnchor.Menu">
<MenuSection
Id="Ribbon.AppName.FlyoutAnchor.Menu.MenuSection"
Sequence="10"
Scrollable="false">
<Controls Id="Ribbon.AppName.FlyoutAnchor.Menu.MenuSection.Controls">
<Button
Id="Ribbon.AppName.FlyoutAnchor.Menu.MenuSection.Button1"
Sequence="10"
Command="Ribbon.AppName.FlyoutAnchor.Menu.MenuSection.Button1_CMD"
Alt="Ribbon.AppName.FlyoutAnchor.Menu.MenuSection.Button1_ALT"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="Button1"
MenuItemId="splitcellshorizontal"
/>
<Button
Id="Ribbon.AppName.FlyoutAnchor.Menu.MenuSection.Button2"
Sequence="20"
Command="Ribbon.AppName.FlyoutAnchor.Menu.MenuSection.Button2_CMD"
Alt="Ribbon.AppName.FlyoutAnchor.Menu.MenuSection.Button2_ALT"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="Button2"
MenuItemId="splitcellsvertical"
/>
</Controls>
</MenuSection>
</Menu>
</FlyoutAnchor>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458372.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.GalleryFlyout". | AppName.GalleryFlyout |
| alt | Optional. Alternative text for the control. | GalleryFlyout |
| labeltext | Optional. The text to label the control. | GalleryFlyout |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<FlyoutAnchor
Id="Ribbon.AppName.GalleryFlyout"
Sequence="10"
Alt="GalleryFlyout"
LabelText="GalleryFlyout"
Command="Ribbon.AppName.GalleryFlyout_CMD"
PopulateDynamically="false"
PopulateOnlyOnce="true"
PopulateQueryCommand="Ribbon.AppName.GalleryFlyout_Query_CMD"
TemplateAlias="o2"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
ToolTipTitle="GalleryFlyout"
ToolTipDescription="Style Gallery Flyout">
<Menu Id="Ribbon.AppName.GalleryFlyout.Menu">
<MenuSection Id="Ribbon.AppName.GalleryFlyout.Menu.MenuSection">
<Gallery
Id="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery"
Command="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery_CMD"
QueryCommand="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery_Query_CMD"
CommandPreview="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery_Preview_CMD"
CommandRevert="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery_Revert_CMD"
ElementDimensions="Size96by72"
Width="4">
<GalleryButton
Id="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton1"
Alt="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton1_ALT"
InnerHTML="<div style='text-overflow:ellipsis'><div style='height:47px;overflow:hidden;white-space:nowrap'><img src='/_layouts/images/blank.gif' style='vertical-align:middle;height:47px;width:1px;'><span class='ms-rteStyle-1'>AaBbCcDdEeFfGgHhIiJjKkLlMm</span></div><div>Headline</div></div>"
Command="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton1_CMD"
CommandType="OptionSelection"
CommandPreview="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton1_Preview_CMD"
CommandRevert="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton1_Revert_CMD"/>
<GalleryButton
Id="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton2"
Alt="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton_ALT"
InnerHTML="<div style='text-overflow:ellipsis'><div style='height:47px;overflow:hidden;white-space:nowrap'><img src='/_layouts/images/blank.gif' style='vertical-align:middle;height:47px;width:1px;'><span class='ms-rteStyle-2'>AaBbCcDdEeFfGgHhIiJjKkLlMm</span></div><div>Subhead</div></div>"
Command="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton2_CMD"
CommandType="OptionSelection"
CommandPreview="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton2_Preview_CMD"
CommandRevert="Ribbon.AppName.GalleryFlyout.Menu.MenuSection.Gallery.GalleryButton2_Revert_CMD" />
</Gallery>
</MenuSection>
</Menu>
</FlyoutAnchor>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458372.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonLabel". | AppName.Label |
| alt | Optional. Alternative text for the label. | Label |
| labeltext | Optional. The text to label the control. | Label |
| tooltiptitle | Optional. The text that appears as the title of the tooltip. | Title |
| tooltipdescription | Optional. The text that appears in the body of the tooltip. | Description |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<Label
Id="Ribbon.AppName.Label"
LabelText="Label"
Command="Ribbon.AppName.Label.Label_command"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Sequence="10"
TemplateAlias="o2" />
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458414.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonMRUSplitButton". | AppName.MRUSplitButton |
| alt | Optional. Alternative text for the button. | MRUSplitButton |
| labeltext | Optional. The text to label the control. | MRUSplitButton |
| tooltiptitle | Optional. The text that appears as the title of the tooltip. | Title |
| tooltipdescription | Optional. The text that appears in the body of the tooltip. | Description |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<MRUSplitButton
Id="Ribbon.AppName.MRUSplitButton"
Sequence="10"
Alt="MRUSplitButton"
Command="Ribbon.AppName.MRUSplitButton_CMD"
MenuCommand="Ribbon.AppName.MRUSplitButton_Menu_CMD"
InitialItem="Ribbon.AppName.MRUSplitButton.Button1"
TemplateAlias="o1"
ToolTipTitle="Title"
ToolTipDescription="Description">
<Menu Id="Ribbon.AppName.MRUSplitButton.Menu">
<MenuSection Id="Ribbon.AppName.MRUSplitButton.Menu.MenuSection" Sequence="10" DisplayMode="Menu32">
<Controls Id="Ribbon.AppName.MRUSplitButton.Menu.MenuSection.Controls">
<Button
Id="Ribbon.AppName.MRUSplitButton.Menu.MenuSection.Button1"
MenuItemId="Ribbon.AppName.MRUSplitButton.Button1"
Sequence="10"
Alt="Ribbon.AppName.MRUSplitButton.Menu.MenuSection.Button1_ALT"
CommandType="OptionSelection"
Command="Ribbon.AppName.MRUSplitButton.Menu.MenuSection.Button1_CMD"
CommandValueId="Ribbon.AppName.MRUSplitButton.Menu.MenuSection.Button1_ValueID_CMD"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="MRU_Btn1"/>
<Button
Id="Ribbon.AppName.MRUSplitButton.Menu.MenuSection.Button2"
MenuItemId="Ribbon.AppName.MRUSplitButton.Button2"
Sequence="20"
Alt="Ribbon.AppName.MRUSplitButton.Menu.MenuSection.Button2_ALT"
CommandType="OptionSelection"
Command="Ribbon.AppName.MRUSplitButton.Menu.MenuSection.Button2_CMD"
CommandValueId="Ribbon.AppName.MRUSplitButton.Menu.MenuSection.Button2_ValueID_CMD"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="MRU_Btn2"/>
</Controls>
</MenuSection>
</Menu>
</MRUSplitButton>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458360.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonSpinner". | AppName.Spinner |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<Spinner
Id="Ribbon.AppName.Spinner"
DefaultUnit="pixel"
DefaultValue="10"
AltUpArrow="Up"
AltDownArrow="Down"
AccelerationInterval="125"
MultiplierInterval="2000"
Command="Ribbon.AppName.Spinner_CMD"
TemplateAlias="o2"
Sequence="10">
<Unit
Name="pixel"
MinimumValue="1"
MaximumValue="2000"
DecimalDigits="0"
Interval="5">
<UnitAbbreviation Value="px" />
</Unit>
<Unit
Name="percent"
MinimumValue="1"
MaximumValue="100"
DecimalDigits="0"
Interval="1">
<UnitAbbreviation Value="%" />
</Unit>
</Spinner>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458442.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonSplitButton". | AppName.SplitButton |
| alt | Optional. Alternative text for the button. | SplitButton |
| labeltext | Optional. The text to label the control. | SplitButton |
| tooltiptitle | Optional. The text that appears as the title of the tooltip. | Title |
| tooltipdescription | Optional. The text that appears in the body of the tooltip. | Description |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<SplitButton
Id="Ribbon.AppName.SplitButton"
Sequence="10"
Alt="SplitButton"
Command="Ribbon.AppName.SplitButton_CMD"
CommandMenuOpen="Ribbon.AppName.SplitButton_MenuOpen_CMD"
CommandMenuClose="Ribbon.AppName.SplitButton_MenuClose_CMD"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="SplitButton"
MenuAlt="Ribbon.AppName.SplitButton_Menu_ALT"
TemplateAlias="o1">
<Menu Id="Ribbon.AppName.SplitButton.Menu">
<MenuSection
Id="Ribbon.AppName.SplitButton.Menu.MenuSection"
DisplayMode="Menu"
Sequence="10">
<Controls Id="Ribbon.AppName.SplitButton.Menu.MenuSection.Controls">
<Button
Id="Ribbon.AppName.SplitButton.Menu.MenuSection.Button1"
Sequence="10"
Alt="Ribbon.AppName.SplitButton.Menu.MenuSection.Button1_ALT"
Command="Ribbon.AppName.SplitButton.Menu.MenuSection.Button1_CMD"
LabelText="SplitButton1"/>
<Button
Id="Ribbon.AppName.SplitButton.Menu.MenuSection.Button2"
Sequence="20"
Alt="Ribbon.AppName.SplitButton.Menu.MenuSection.Button2_ALT"
Command="Ribbon.AppName.SplitButton.Menu.MenuSection.Button2_CMD"
LabelText="SplitButton2"/>
</Controls>
</MenuSection>
</Menu>
</SplitButton>
Torsten Mandelkow
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonStaticCombobBox". | AppName.StaticComboBox |
| alt | Optional. Alternative text for the button. | StaticComboBox |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<ComboBox
Id="Ribbon.AppName.StaticComboBox"
Sequence="10"
Alt="StaticComboBox"
Command="Ribbon.AppName.StaticComboBox_CMD"
CommandMenuOpen="Ribbon.AppName.StaticComboBox_Open_CMD"
CommandMenuClose="Ribbon.AppName.StaticComboBox_MenuClose_CMD"
CommandPreview="Ribbon.AppName.StaticComboBox_Preview_CMD"
CommandPreviewRevert="Ribbon.AppName.StaticComboBox_PreviewRevert_CMD"
InitialItem="StaticComboButton1"
AllowFreeForm="false"
PopulateDynamically="false"
PopulateOnlyOnce="true"
PopulateQueryCommand="Ribbon.AppName.StaticComboBox_PopQuery_CMD"
Width="125px"
TemplateAlias="o2">
<Menu Id="Ribbon.AppName.StaticComboBox.Menu">
<MenuSection
Id="Ribbon.AppName.StaticComboBox.Menu.MenuSection"
Sequence="10">
<Controls Id="Ribbon.AppName.StaticComboBox.Menu.MenuSection.Controls">
<Button
Id="Ribbon.AppName.StaticComboBox.Menu.MenuSection.Button1"
Sequence="10"
Command="Ribbon.AppName.StaticComboBox.Menu.MenuSection.Button1_CMD"
CommandType="OptionSelection"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="StaticComboButton1"
MenuItemId="StaticComboButton1"/>
<Button
Id="Ribbon.AppName.StaticComboBox.Menu.MenuSection.Button2"
Sequence="20"
Command="Ribbon.AppName.StaticComboBox.Menu.MenuSection.Button2_CMD"
CommandType="OptionSelection"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="StaticComboButton2"
MenuItemId="StaticComboButton2"/>
</Controls>
</MenuSection>
</Menu>
</ComboBox>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458425.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonStaticDropDown". | AppName.StaticDropDown |
| alt | Optional. Alternative text for the button. | StaticDropDown |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<DropDown
Id="Ribbon.AppName.StaticDropDown"
Alt="StaticDropDown"
Sequence="10"
Command="Ribbon.AppName.StaticDropDown_CMD"
CommandMenuOpen="Ribbon.AppName.StaticDropDown_MenuOpen_CMD"
CommandMenuClose="Ribbon.AppName.StaticDropDown_MenuClose_CMD"
PopulateDynamically="false"
PopulateOnlyOnce="true"
PopulateQueryCommand="Ribbon.AppName.StaticDropDown_PopulateQuery_CMD"
InitialItem="StaticDropdownButton1"
Width="125px"
TemplateAlias="o2"
ToolTipTitle="Static DropDown"
ToolTipDescription="Static DropDown">
<Menu Id="Ribbon.AppName.StaticDropDown.Menu">
<MenuSection
Id="Ribbon.AppName.StaticDropDown.Menu.MenuSection"
Sequence="10">
<Controls Id="Ribbon.AppName.StaticDropDown.Menu.MenuSection.Controls">
<Button
Id="Ribbon.AppName.StaticDropDown.Menu.MenuSection.Button1"
Sequence="10"
Command="Ribbon.AppName.StaticDropDown.Menu.MenuSection.Button1_CMD"
CommandType="OptionSelection"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="StaticDropdownButton1"
MenuItemId="StaticDropdownButton1"/>
<Button
Id="Ribbon.AppName.StaticDropDown.Menu.MenuSection.Button2"
Sequence="20"
Command="Ribbon.AppName.StaticDropDown.Menu.MenuSection.Button2_CMD"
CommandType="OptionSelection"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="StaticDropdownButton2"
MenuItemId="StaticDropdownButton2"/>
</Controls>
</MenuSection>
</Menu>
</DropDown>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458462.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonTableFlyout". | AppName.TableFlyout |
| alt | Optional. Alternative text for the control. | TableFlyout |
| labeltext | Optional. The text to label the control. | TableFlyout |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<FlyoutAnchor
Id="Ribbon.AppName.TableFlyout"
Sequence="10"
Alt="TableFlyout"
LabelText="TableFlyout"
Command="Ribbon.AppName.TableFlyout_CMD"
PopulateDynamically="false"
PopulateOnlyOnce="true"
PopulateQueryCommand="Ribbon.AppName.TableFlyout_Query_CMD"
TemplateAlias="o2"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
ToolTipTitle="Table flyout"
ToolTipDescription="inserts a custom table">
<Menu Id="Ribbon.AppName.TableFlyout.Menu">
<MenuSection
Id="Ribbon.AppName.TableFlyout.Menu.MenuSection"
Title="Custom InsertTable">
<Controls Id="Ribbon.AppName.TableFlyout.Menu.MenuSection.Controls">
<InsertTable
Id="Ribbon.AppName.TableFlyout.Menu.MenuSection.InsertTable"
Sequence="10"
Alt="Insert a {0}x{1} Table"
Command="Ribbon.AppName.TableFlyout.Menu.MenuSection.InsertTable_CMD"
CommandPreview="Ribbon.AppName.TableFlyout.Menu.MenuSection.InsertTablePreview_CMD"
CommandRevert="Ribbon.AppName.TableFlyout.Menu.MenuSection.InsertTablePreviewRevert_CMD"
MenuSectionTitle="Custom Insert Table"
MenuSectionInitialTitle="InsertTable"/>
</Controls>
</MenuSection>
</Menu>
</FlyoutAnchor>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458372.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonTextBox". | AppName.TextBox |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<TextBox
Id="Ribbon.AppName.TextBox"
Sequence="10"
Command="Ribbon.AppName.TextBox_command"
MaxLength="512"
TemplateAlias="o2"/>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458386.aspx
| ID | ToolTip | Default |
|---|---|---|
| id | Required. A string that identifies the control, such as "Ribbon.Library.Share.NewRibbonToggleButton". | AppName.ToggleButton |
| alt | Optional. Alternative text for the button. | ToggleButton |
| labeltext | Optional. The text to label the control. | ToggleButton |
| tooltiptitle | Optional. The text that appears as the title of the tooltip. | Title |
| tooltipdescription | Optional. The text that appears in the body of the tooltip. | Description |
| sequence | Optional. An integer that specifies the order of placement among sibling XML nodes. | 10 |
<ToggleButton
Id="Ribbon.AppName.ToggleButton"
Alt="ToggleButton"
Command="Ribbon.AppName.ToggleButton_command"
Image16by16="/_layouts/1033/images/formatmap16x16.png" Image16by16Top="-64" Image16by16Left="-192"
Image32by32="/_layouts/1033/images/formatmap32x32.png" Image32by32Top="0" Image32by32Left="-384"
LabelText="ToggleButton"
Sequence="10"
TemplateAlias="o2"
ToolTipTitle="Title"
ToolTipDescription="Description"/>
Torsten Mandelkow
http://msdn.microsoft.com/en-us/library/ff458393.aspx
| ID | ToolTip | Default |
|---|---|---|
| ID | Required Text. Specifies the content type ID of the content type. A content type ID has a very specific format. If the value that you assign the ID attribute is not in the correct format, you will get an error when the Feature activates. | 0x01 |
| Name | Required Text. Specifies the content type name. The value can be a reference to a resource in the format $Resources:String. For more information, see Localizing SharePoint Solutions.The name itself cannot be longer than 128 characters. An error occurs if another content type with the same name exists in the collection where the content type is added. | ContentType1 |
| Description | Optional Text. Provides a description for the content type, to display in the SharePoint Foundation user interface. The value can be a reference to a resource in the format $Resources:String. | |
| FeatureId | Optional Text. Provides the ID of the feature with which the content type is associated. The value should be the string representation of a GUID structure, including braces. | 00000000-0000-0000-0000-000000000000 |
| Group | Optional Text. Specifies the content type group to which the content type is assigned. Content type groups are user-defined groups that help you organize content types into logical categories. The value can be a reference to a resource in the format $Resources:String. | |
| Hidden | Optional Boolean. TRUE to define the content type as hidden. If you define a content type as hidden, SharePoint Foundation does not display that content type on the New button in list views. If you do not include this attribute, SharePoint Foundation treats the content type as if the attribute was set to FALSE. | FALSE |
| ReadOnly | Optional Boolean. TRUE to specify that the content type cannot be edited without explicitly removing the read-only setting. This can be done either in the user interface or in code. | FALSE |
| Sealed | Optional Boolean. TRUE to prevent changes to this content type. You cannot change the value of this attribute through the user interface, but you can change it in code if you have sufficient rights. You must have site collection administrator rights to unseal a content type. | FALSE |
| V2ListTemplateName | Optional Text. Specifies the Windows SharePoint Services 2.0 list template type to which this content type maps. For example, the Document content type maps to the Document Library list template. | |
| Version | Reserved for future use. | 0 |
<ContentType
ID=&