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)

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
64 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
3answers
4k 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 ...
4
votes
2answers
2k views

How to remove the builtin “Item” Content Type from a list using powershell?

I have a custom content type and I added this content type to a list. I now want this list to only use the custom content type and I want to remove the built-in "Item" content type. I tried ...
4
votes
1answer
3k views

How do I programmatically reorder fields in a custom content type?

This is the code I wrote to reorder fields in a custom content type: //get the content type SPContentType listContentType = myList.ContentTypes[MyContentTypeName]; //get the field name to put first ...
4
votes
2answers
323 views

Design Manager crashes when loading snippets

I'm having issues with the SharePoint 2013 Design Manager, so far I've - created a new content type that inherits from the Page content type - created a new page layout in the design manager, using ...
4
votes
1answer
248 views

Sharepoint Workflows and Managed Term Sets

Platform: Sharepoint 2010 with Sharepoint Designer 2010 Are there any explanations out there on how to create a workflow with an email template that is sent to certain people based on a taxonomy term ...
4
votes
1answer
282 views

Assigning Icons to Content types

I have added a couple of content types that inherit from "folder" and some other from "item" (and each other, but they're not the issue). How can I, if that's possible at all, set another icon for my ...
4
votes
0answers
1k views

SharePoint List with multiple content types and the datasheet view

According to this thread. SharePoint 2010 does not "support" using the datasheet view with multiple content types configured anymore. But maybe somebody knows a workaround for my problem: I have a ...
3
votes
1answer
9k views

Custom list definition - fields in Elements.xml and Schema.xml

I'm creating a custom list definition in SharePoint 2010 by following this article. The tutorial is OK and it works. There is a thing that I don't understand though. Why do I need to insert the ...
3
votes
3answers
11k views

How do I programatically change the content type of an existing file?

Is there some way to change the content type of a file using PowerShell? Ideally I'd like to write a function that one would point at a specific document library and it would pull down an array of ...
3
votes
2answers
5k views

Problem with Sharepoint ContentTypeBinding and Lookup field

I have a problem with ContentTypeBinding when creating a new site. I have custom site template definition where I have referenced Publishing Server Feature, so list Pages is automatically created on ...
3
votes
2answers
794 views

How to change the Type icon of a particular content Type

I'm creating some Content Types... Is there any way to put inside the XML the information to describe the Icon of a Specific content type? Something that overrides the document type or the folder ...
3
votes
3answers
3k views

Programatically add a content type to a document library

I have an event-handler feature that changes the content type of an item when it is added to a document library, however this will only work if the content type is allowed for that document library. ...
3
votes
2answers
4k views

How to get default content type of list programmatically

How can I get default content type of sharepoint list programmatically?
3
votes
1answer
816 views

Determine if a document library is a sharepoint library

I'm adding some content types to every standard-document library which is created over the "List Added"-EventReceiver. When a web is created the are some new doclibs for example in a team site there ...
3
votes
2answers
1k views

suitable content type for news with images

we're just starting with developing a new intranet site for our company, using SP2010. I'm trying to get my head around how to best structure/tackle the following scenario: Users across the company ...
3
votes
1answer
406 views

Does Create Content Type need to be a farm solution?

I've found a couple of examples of creating a content type using visual studio. http://stevemannspath.blogspot.com/2010/11/sharepoint-2010-leveraging-visual.html ...
3
votes
1answer
464 views

Best way to implement content type specific search?

I am planning on rolling my own web part where users can select a content type and it will generate search fields based on the columns. Am I right to write my own or is there a better way to do this ...
3
votes
2answers
3k views

Force the document information panel to show with code or featuredefinition

In the UI I can drill down into a ContentType settings -> Document Information Panel settings -> and set 'Show Always' to true (marking the check box). How do i set this option through code? (or in ...
3
votes
1answer
5k views

Moving site columns and content types between farms

I can't seem to find the codeplex solution that helps export site columns, content types and import back to another sc or farm. Idea is to retain the guid for these. I know create wsp vs project is ...
3
votes
1answer
282 views

How to Search custom columns for a content type and display in SPGridView

I have a custom task content type based on the task content type which has a custom priority column, custom assigned to column etc. There are many instances of the task list in multiple site ...
3
votes
2answers
232 views

Why are some of my content type columns grayed off?

Here's what my content looks like, currently. Some of the columns are grayed off for some reason, and I can't change their visible/hidden/required status. It only happens with Integer columns. If I ...
3
votes
2answers
2k views

Change Base Content Type of Content Type

In Sharepoint 2010, is there any way to change the parent (or base) type of a Content Type after the relationship has been established?
3
votes
3answers
5k views

Content type ordering or making it default ct

The following is updated code from Ton Stegeman and it works. private static void AddContentType(SPWeb web, SPList spList, string ctName) { if (web.AvailableContentTypes[(ctName)] != ...
3
votes
2answers
937 views

Does all external SharePoint data have to flow through BCS?

I was asked the question why I need access to BCS Services and have been tasked with documenting "ways to access external data in SharePoint' I've read one article after the next regarding external ...
3
votes
1answer
2k views

Programmatically create a new document based on a content type template

As in the title, I need to programmatically create a new document based on a content type template. Does anyone know the best way to do this? Normally, to add files you use Web.Files.Add(), but all ...
3
votes
3answers
118 views

Is a ContentType worthwhile/necessary in this situation?

I'm creating a custom List Definition. I've previously been told that I should create a ContentType, and a ListDefinition from that. But this seems to mean a lot of duplication in my project files. So ...
3
votes
3answers
6k views

How to Submit an InfoPath Form to its Own Library?

Salvete! I have an InfoPath-based content-type. I also created a forms library in several subsites that each use this content-type. Now, I need to fix my InfoPath content-type form so that it gets ...
3
votes
3answers
3k views

Trying to hide the title column the sharepoint way

I am currently just messing around with defining lists via the elements.xml Content Type <?xml version="1.0" encoding="utf-8"?> <Elements ...
3
votes
1answer
441 views

Why Is My Content Type Replaced With a List Instance Detail When I Deploy My Project in Visual Studio, but Not When I Deploy it Manually?

I'm doing something that I think is pretty typical. I've created a content type, descended from Document, to go into a document library, like so: <?xml version="1.0" encoding="utf-8"?> ...
3
votes
2answers
575 views

Publish contenttype after activating feature (Office 365)

I've created a Contenttype and some fields in a visual studio project. They are deployed when activating the "Content types"-feature. But here's the problem: I want them to be deployed to the Content ...
3
votes
1answer
2k views

Can't delete content type

How do you remove a content type? I created a content type at the site collection level, used it for a few lists, deleted the lists, cleared them from their site's Recycle Bin, and it still says The ...
3
votes
3answers
7k views

Content type not showing up after publishing to hub - what am I doing wrong?

Here are the steps I am taking Updating the existing MDS to enable hub (setting URI to a specific site collection) Update the content type in the site collection to be set to publish Run the timer ...
3
votes
3answers
983 views

Content Type Column Removal

I have a few Content Types that inherit from a base Content Type. These are all wrapped up as part of my solution. I wondered, as it is possible to add additional columns to a child Content Type ...
3
votes
4answers
1k views

Best way to get CAML for a custom content type

I am trying to get the CAML for a custom content type that I am creating. What I am really doing is creating the content type in Visual Studio 2010 and then deploying that content type to my sandbox. ...
3
votes
1answer
771 views

How to restrict/hide OOTB document libraries creation

Is there a way to restrict the out of the box document libraries like "Document Library" "Picture Library" etc and just have custom document libraries being shown in the pop-up below?
3
votes
1answer
307 views

What are the big no-no's that break content type inheritance to a site?

In my organization I have experienced that suddenly the inheritance have been unintentionally broken to a site, so that new lists or subsites only have local - obsolete versions of the content types. ...
3
votes
1answer
330 views

Content Deployment job failing because of mismatched feature versions

I have content deployment (using database snapshots) configured between an authoring and production SharePoint 2010 environment. I have a feature called PublishingContent_ContentTypes which I ...
3
votes
2answers
4k views

Why is a workflow, which is associated with a content type, not associated with a document of that content type?

We have Sharepoint 2010 and MS Word 2007. I have the three default workflows (Collect Feedback, Approval, Collect Signatures) associated with a content type based on the document content type. When ...
3
votes
2answers
492 views

How can I get a tree view for content types out of the metadata navigation hierarchy in a document library?

I have a hierarchy of content types that's currently two levels deep, and could go to three. These are for legal documents and may ultimately be used as templates in Word... which is why I opted to go ...
3
votes
1answer
182 views

Error building a content type in SP 2007

I have an event handler that catches an ItemAdding event and changes the content type on the fly. This is my code to build the content type: SPContentType baseContentType = ...
3
votes
3answers
3k views

Mysteries of the ContentType Inherits attribute

When defining content types in SharePoint 2010, there is a new Inherits attribute. According to the SDK: The value of this attribute determines whether the content type inherits fields from ...
3
votes
1answer
40 views

Problem with Localization of ContentTypes

I've developed some content types. There are no resource files in my solution. When I'm deploying them to an English team site the description is correctly displayed. If I deploy them to a German team ...
3
votes
1answer
74 views

How to Copy Object With a Custom Content Type?

In SharePoint I have created a custom content type at the root site level. It's a "described folder", inheriting from the folder type and adding an extra column that can hold a textual description. I ...
3
votes
1answer
2k views

Sharepoint 2013 - REST api - downloading file returns incorrect Content-Type

I made the following request to download a file from Sharepoint 2013 using REST api: GET ...
3
votes
1answer
299 views

Make Link to a Document more user friendly

The way Link to a Document works is that I need to go to the place where I want the link to appear. Click this content type and then provide the URL to the document in some remote location. This makes ...
3
votes
1answer
1k views

Error while form opening if it is created from SharePoint Designer

I got stuck! :P My goal: New form in source library ====> New form in target library [both web-browser enabled, following Infopath templates] Using "create list item" action within a workflow ...
3
votes
1answer
715 views

Removing Workflow Association on Content type programmatically with push to children

I am required to remove Workflow associations on a content type and from all the child content types deriving from this, as well as the list content types, deriving from the derived. ct - A Site ...
3
votes
1answer
158 views

SharePoint 2010 Workflow Deployemnet from DEV to UAT

I have Sharepoint 2010 DEV and UAT sites. I have made some changes in DEV workflow and I want to deploy the changed workflow to UAT site. I have created the workflow template and saved .wsp file to ...