Posted by PANVEGA on January 19, 2009
In reference to my previous post about binding a Custom ContentType to a new ListInstance, I wanna solve this issues belowe with a SPFeatureReceiver class in Visual Studio.
http://panvega.wordpress.com/2009/01/19/how-to-bind-a-customcontenttype-to-a-listinstance-feature
http://panvega.wordpress.com/2008/11/05/how-to-develope-a-custom-sp-eventreceiver
First off the default view of your list does not contain those custom columns. When you select the item you will of course see all of your columns but they aren’t listed in the default view. Secondly the default content type for the list is still available to the user. In the case of a generic list the “Item” content type is still present. So when a user enters a new item they are able to select Item or your custom content type. This may not be desirable. Also if you are using the API to insert a new item into the list it will use the list’s default content type instead of the one you may be expecting. Once again this may not be desirable.
To overcome these restrictions we’re going to create a generic feature receiver that can be reused on any implementation using this technique. Read the rest of this entry »
Posted in C#, Custom Content Types, Deployment, DotNet, Event Receivers, MasterPage, Object Model, SharePoint, Site Definition | Tagged: C#, Custom Content Types, Event Receivers, MasterPage, Object Model, SharePoint, Site Definition, Solution Deployment, Visual Studio | Leave a Comment »
Posted by PANVEGA on January 14, 2009
In this post I am gonna show you in only a few steps and a short introduction how easy it is to create a Custom Content Type for a SP Feature Deployment.
Introduction:
A Content Type is a SharePoint object that is closely associated to List item (objects that inherit from SPItem), these objects host meta-data information describing the item it’s associated with. In Windows SharePoint Services, a content type is a reusable collection of settings that are applied to a certain category of content. Learn how to build a custom content type by using Microsoft Visual Studio 2005 Extensions for Windows SharePoint Services 3.0.
A Content Type is a definition of the metadata and behavior of a SharePoint list item. In short, it specifies a type of list item based on:
- The columns that compose the list item;
- The document template used to create a new item (if it’s a document content type);
- The information management policies associated with it;
- The workflows associated with it. Read the rest of this entry »
Posted in Custom Content Types, Deployment, SharePoint, XML | Tagged: Custom Content Types, SharePoint, Solution Deployment, XML | Leave a Comment »