A content type is a reusable collection of columns and settings that can be applied to a certain category of SharePoint content

learn more… | top users | synonyms (1)

22
votes
6answers
19k views

How to delete a content type part of an application feature?

I'm developing a solution in SharePoint 2010 that deploys a content type. I've now made a change to the content type and want to delete all its old references, remove it, and redeploy. Unfortunately ...
18
votes
3answers
1k views

Feature based XML vs. Object Model: Which is better for content type development?

I've been researching a few different ways to create content types and I recently discovered that you can use the Object Model to do this. All of the examples I have found online typically use XML ...
16
votes
4answers
3k views

Content types vs. custom list field

This is a question about best practices and the intent of the designers of SharePoint. I'm pretty new with SharePoint, and have only worked on pretty small projects. I often find myself creating ...
14
votes
2answers
316 views

Do all Content Types require Site Columns?

I'm just wondering if Content Types are always only made out of Site Columns, or if it's possible to define Fields that only exist on that Content Type? (Like how you can add a custom Column to a ...
13
votes
8answers
4k views

Content Type Event Receivers Impossible to Remove

I have a very odd situation in my SharePoint staging environment. We recently stood up a new SharePoint 2010 server (single WFE + a DB server), and attached a backed-up content database from our ...
12
votes
4answers
5k views

Why is Word document created from template saved locally, instead of to the document library?

I have created a custom content type at the root of my Site Collection and set this content type to use a Word document template, which resides in a different document library on the root site. (The ...
10
votes
2answers
1k views

Best way to package publishing content types

I'm currently planning on how to package my Publishing content types in a WSP to make deployment in production easier. I came a cross the following choices 1- create a feature receiver and ...
9
votes
3answers
10k views

How to find all documents of a certain content type?

I have an content type I would like to delete, but when I try I get an error message saying that it is still in use. Is there a way that I can find all documents that are still using that content ...
9
votes
3answers
3k views

Is there a way to see if an SPField was created by a user?

I have some code where I am going through all of the Fields that belong to a content type. I'm curious if there is a way to check to see if the SPField was created by a user or if it is a system ...
9
votes
3answers
4k views

Best practice for deploying Site Columns and Content Type

What is the best practice for creating a site column or content type in SharePoint 2013? Is it still recommended to use farm solutions? I was hoping we could do something with the new app model, but ...
8
votes
4answers
6k views

Add “New document” button to home page

I have a fairly simple SharePoint subsite that has two elements: the home page a document library The document library has two content types associated with it. What I would like to do is add a ...
7
votes
1answer
4k views

Can't hide the title column in a custom content type

I'm building a custom content type. I've set a bunch of site columns I add to the content type. The content type is used in a custom list definition within a ContentTypeRef node. I'm also willing to ...
7
votes
2answers
3k views

Can I order by Content Type in a CAML query?

Is it possible to order by content type in a CAML query? I seem to always get the same result no matter what I do with the Order by. Ordering by ID instead works perfectly. query.Query = @" ...
7
votes
2answers
7k views

How to adjust the title column in custom content type in SharePoint 2010?

I am creating a custom content type and it is working correctly with the exception of the Title column. My content type defination has the Title column added to the FieldRefs and I am trying to both ...
7
votes
1answer
2k views

Show More by Default

I am using SharePoint 2013 and I have a custom contentype inherited from task. Because there are too many fields, by default there is a Show More option to show all the fields. Is there a way to ...
7
votes
1answer
717 views

SharePoint ContentType Lifecycle Management

SharePoint 2010 introduces the new UpgradeActions element to the feature manifest which allows content type (CT) lifecycle management by using the new AddContentTypeField element to add new fields to ...
7
votes
1answer
2k views

Create a Document Library Item base on a ContentType with JavaScript Object Model (JSOM)

I'm trying to create a new item in my Entreprise Wiki Pages Document Library. It's associated with a News Content type. I was able to retrieve the SP.List object (myList), the SP.ContentType object ...
7
votes
1answer
2k views

Opening the default “New Document” editor for a given ContentType from an external C# application (Sharepoint 2010)

I'm currently working on integrating some SharePoint functionality to an existing C# application we have here. Most of the requirements have be fairly easy to implement: I'm using the ListData REST ...
6
votes
2answers
3k views

Renaming Title Column in SharePoint List Definition

I am defining a custom list content type for SharePoint (using VSeWSS 1.3 and schema.xml). I want to change the display name of the default title field ('Title') to 'Serial Number': <Fields> ...
6
votes
3answers
398 views

Ups and Downs of Content Type Creation Methods

There are several places online I've read to only create content types in feature XML. However, the reason for this seems to be to keep the content type as deployed in a feature. As I understand it, ...
6
votes
3answers
2k views

Content Type Inheritance

In simplified form, I have the following situation. A Parent content type <ContentType ID="0x0100db5b9dac9c5f4d098820f922eebf3b39" Name="Parent" Group="Example Content ...
6
votes
1answer
1k views

Sharing custom content types across multiple web applications

Our SharePoint 2010 instance have 3 Web Applications, lets just call them A B and C. I have the managed-metadata service pointed to web application A. The content type hub service is enable for A. ...
6
votes
4answers
8k views

SharePoint 2010 Get Content Type Programmatically

I've created several content types that inherit from the document content type in the site content type lists. Please refer to the image below: How do I get these these content types ...
6
votes
3answers
3k views

Move content type inside site collection

In one of site collections we have a content type defined in one of the subwebs. Having it there it's impossible to use it on root web or any other branch of subwebs. Is it possible to move or copy ...
6
votes
1answer
3k views

Choice field changed - How to propagate the change down to all lists that used it?

I have a feature (Web scoped) with a content type which contains a field (Type="Choice"). Values were A, B and C. I've created a list based on this content type and added some elements in it. I ...
6
votes
2answers
5k views

Get all Files from sub folder of a certain content type

my problem is I have a document library with sub folders. Also the document library got more than one content type. Is there a way to create a CAML or LINQ query to get all files of a certain content ...
6
votes
1answer
855 views

Only allow Document Sets in a Document Library (ie no Folders)

I'm exploring the use of Document Sets as a more managed approach to file handling (in the recordkeeping sense) in SharePoint. The chief problem I have is that Document Sets are derived from Folders, ...
6
votes
3answers
211 views

Equivalent of a database table in SharePoint?

I'm making a Publishing site, and part of this site will display information about company products. We have a number of products, and each one should have its own description page. The description ...
5
votes
4answers
9k views

Site Content Types screwed up. How to restore to default?

I need to change a root site's Item Content Type settings back to the default values. I also need to do this for all other Content Types that inherit from Item. Can someone recommend a safe an ...
5
votes
3answers
5k views

Is there a list of Sharepoint 2007 WebParts, Features and ContentTypes that Sharepoint installs with?

Does anyone know where I can find a list of all the WebParts, Features and ContentTypes that are available to a regular Sharepoint installation? What I need to do is identify any of the above in a ...
5
votes
4answers
536 views

SharePoint 2010 - One content type per Library?

I am working with a consultant on helping us with our SharePoint rollout. One of the things I am really trying to get my head around is that he is a big believer in having only one content type per ...
5
votes
3answers
1k views

How to modify dropdown document template list visible when creating document library?

When creating a document library, and specifying the default document template, the dropdown list of templates out-of-the-box (OOB) includes 97-2003 format files at the top of the list. Users who do ...
5
votes
3answers
962 views

Deleting a site content type in Sharepoint 2007

I'm trying to delete a custom content type that I've created, but I'm getting an error when I try to do so: The content type is in use. at ...
5
votes
4answers
396 views

Better to try to reuse built-in site columns, or create your own?

I'm creating a client content type. One of the properties I want to store for each client is their postcode. I could create my own site column, say Client Postcode. But there's also a site column ...
5
votes
2answers
4k views

SPSiteDataQuery vs. Recursive SPWeb.Lists Performance

I'm looking for the best performing means of querying for site data within a site collection. I need to query for all of the lists in either a particular SPWeb, or a set of SPWeb's, that contain a ...
5
votes
2answers
84 views

Update a list item in moss2007

i have a list with Column name Reported By.It is a choice field.When adding a new item to the list the current user name also should be added to the Reported By column's field.It should be the first ...
4
votes
1answer
13k views

More than 255 characters in multiple lines of text?

I have an InfoPath Form which submits the text of a textbox and saves it in a SharePoint list. Whenever a user types in more than 255 characters and I want to edit the element in the SharePoint list ...
4
votes
1answer
7k views

How to update a deployed content-type?

I created a content-type and applied it inside a document library. Now, if I go to the conent-type gallery and delete one of the fields, and then go back to the library and view the available ...
4
votes
2answers
2k views

Parent content type

In SharePoint 2010, is there any chance to create a parent content type? If so, how? I want to create a new parent content type and inherit it for other types.
4
votes
2answers
6k views

Set “Allow management of content types?” set to “Yes” within a Content Type or List Definition

How do you set "Allow management of content types?" to "Yes" within a Content Type or List Definition?
4
votes
1answer
6k views

Adding a site column and add it to a content type from PowerShell issue

Within a PS script, I'm trying to add a site column and add this column to a custom content type. Here is my script : add-pssnapin Microsoft.SharePoint.PowerShell -EA 0 function ...
4
votes
1answer
4k views

The field with Id [GUID] defined in feature [GUID] was found in the current site collection or in a subsite

I have a farm solution with a single feature that has a bunch of site columns and a content type. The content type does inherit from Enterprise Wiki Page, but the feature has an activation dependency ...
4
votes
2answers
1k views

Webpart Page as Document Template (SP 2007)

I am trying to create a custom content type where the Document Template is a webpart page with multiple webparts already on it. My problem is, I created a page in a page library, saved a copy of that ...
4
votes
3answers
2k views

Error Message - Field type Publishing Image is not installed properly. Go to the list settings page to delete this field

When I goto Site Settings > Site Columns, I get this error message Field type Publishing Image is not installed properly. Go to the list settings page to delete this field. How do I get to ...
4
votes
3answers
851 views

Content Organizer in a Records Management Scenario for multiple Content Types

We are currently doing a POC for a client to use SharePoint 2010 for Records Managment. The client has around 200 content types, and a deep nested file plan of around 500 potential nodes. In order to ...
4
votes
2answers
3k views

Content Type Field missing from New Form

I have created three content types and associated with a list. When you click the list and then the add new button from the Ribbon in the top, all 3 types display. However, when you click add new ...
4
votes
2answers
61 views

Identify a Preinstalled Content Type

Does anyone know of a fast way to tell through code if a ContentType is one that's a pre-installed one? Conversely, I want to know if a given ContentType was provisioned by a custom feature / ...
4
votes
2answers
3k views

Content Type vs Managed Metadata

Considering Content Types and Managed Metadata are two difference ways to add metadata to items I am having difficulty understanding how these two features play together. It seems to me many of the ...
4
votes
4answers
3k views

Get ContentType in ItemAdding Event Handler

I need to change a field in the item being added based on its content type. This needs to happen before the item has been added - hence ItemAdding event receiver. Using ItemAdded is no good since the ...
4
votes
3answers
3k views

New site columns are not being completely propagated to a content type in a site collection

We're working on a SharePoint 2010 publishing site that has been deployed to our client's environment. We need to add 5 new site columns and add them to one of the content types (that's based on ...