How To
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Introduction
SharePoint 2010 allows the option to make use of a Visual Studio 2010 Content Type project to be deployed to SharePoint 2010 as a Document Library or List template with custom columns as required. This template will then be available for selection when creating a new Document Library or List in the site collection. Normal functionality is available on this Document Library or List template; however the K2 Designer for SharePoint menu item will not be available automatically and needs to be enabled manually. This document will explain the steps on how to enable the K2 Designer for SharePoint menu item for use of the K2 Designer for SharePoint feature.
How to enable the K2 Designer for SharePoint menu item
This section will explain how to enable the K2 Designer for SharePoint menu item manually for a Visual Studio 2010 Content Type project deployed to SharePoint 2010. There are 4 steps needsed as explained below.
The Content Type Instance ID is required to update the elements.xml file. Updating the elements.xml file will be explained in step 2. Follow the steps below to retrieve the Content Type Instance ID:
The Content Type Instance ID needs to be inserted into the elements.xml file located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\K2WebDesignerV2. Follow the steps below to insert the Content Type ID:
<CustomAction Id="K2.List.Ribbon.CustomAction.YourContentTypeID" RegistrationId=" YourContentTypeID" RegistrationType= "ContentType" Location="CommandUI.Ribbon" >
<CommandUIExtension>
<CommandUIDefinitions>
<CommandUIDefinition Location="Ribbon.Library.Settings.Controls._children">
<Button
Id="K2.Ribbon.CreateNewK2Process"
Alt="$Resources:K2WebDesigner_Title"
ToolTipTitle="$Resources:K2WebDesigner_Title"
ToolTipDescription="$Resources:K2WebDesigner_Description_Library"
Sequence="5"
LabelText="$Resources:K2WebDesigner_Title"
Image32by32="/_layouts/images/k2/k24sp_sitesettings_k2d4spmenuitem_32x32.png"
Command="CreateNewProcess"
TemplateAlias="o1" />
</CommandUIDefinition>
</CommandUIDefinitions>
<CommandUIHandlers>
<CommandUIHandler
Command="CreateNewProcess" CommandAction="K2WebDesigner.aspx?List={ListId}&SiteUrl={SiteUrl}" />
</CommandUIHandlers>
</CommandUIExtension>
</CustomAction>
The K2 Designer for SharePoint feature needs to be reinstalled as a final step to enable the K2 Designer for SharePoint feature on the Document Library or List deployed from a Visual Studio 2010 Content Type Project. In order to do this the feature ID needs to be retrieved from the feature.xml file. Follow the steps below to retrieve the feature ID:
3. Copy the feature ID for later use.
The K2 Designer for SharePoint feature can now be reinstalled using the feature ID retrieved in step 3. Follow the steps below to reinstall the K2 Designer for SharePoint feature:
If you now open the Document Library or List deployed from the Visual Studio 2010 Content Type Project, the K2 Designer for SharePoint menu item is now visible on the ribbon bar and the feature can be accessed as normal.