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)

2
votes
2answers
3k views

Event receiver attached to content type via XmlDocuments ignored?

I have a content type defined in Elements.xml and I want to add an Event Receiver. My Elements.xml looks like this: <?xml version="1.0" encoding="utf-8"?> <Elements ...
2
votes
2answers
52 views

hiding a content type in 2010 using the GUI

Guys i want to create a base content type but i dont want anyone to be able to use this content type when assigned to the library. Is there a way through the GUI to set this? If not perhaps a ...
2
votes
1answer
102 views

Setting Sealed to False… Any repercussions?

I need to attach an event receiver to a content type created by SharePoint: FolderCT.EventReceivers.Add(SPEventReceiverType.ItemAdding, SharepointReceiversAssemblyName, CTReceiverName); ...
2
votes
2answers
2k views

How to get default content type of list programmatically

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

How to activate content type on specific web?

I have site collection ex: http://microsoft.com/ and i got few child webs: http://microsoft.com/news/ http://microsoft.com/somethingelse/ <Elements ...
2
votes
1answer
1k views

Content type features refusing to enable

I am performing an upgrade from a 2007 environment to a 2010 environment and am having an issue with content types. In the 2007 environment, there was a custom content type from our codebase in a ...
2
votes
4answers
1k views

Document Properties Demotion from ListItem field is not working

I have a content type in a library configured with a word document as a template, it is the default content type. When creating via the UI from New item entering information into the DIP sets values ...
2
votes
1answer
1k views

How do you determine the Consumers for a given Content Type?

Is there a quick powershell script to find out all the consumers who are consuming a given content type? If yes, how do you do this with powershell?
2
votes
1answer
310 views

Sharepoint Designer > Use Custom Field from Content Type to set a HTML Attibute

I'm really not a Designer, but unfortunately, I have to design something. Any help will be much appreciated. The Scenario: I have a Page Layout with my own Content Type. One of the Fields in the ...
2
votes
2answers
2k 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. ...
2
votes
2answers
433 views

How to use one page layout for few content types

I have elements.xml with module: <Elements> <Module Name="IntranetNewsPageLayout" Url="_catalogs/masterpage"> <File Path="IntranetNewsPageLayout\IntranetNewsPageLayout.aspx" ...
2
votes
1answer
798 views

Parent content type Page or Page Layout?

When to develop custom page layout via Visual Studio, which parent content type must be chosen for content type? From different articles i see both Page and Page Layout selected as base Content type. ...
2
votes
2answers
247 views

Lookup List and return data from within a Form

OK, I'm beginning to despair at SharePoint...please help restore some faith :) Seems some very basic things are very hard to achieve? 1: I have data in an SQL database table. 78,000 rows, but I want ...
2
votes
1answer
114 views

Custom content type throwing errors?

I have created a custom content type that uses several custom fields that I created in the same project. When I deploy the content type for the first time it works fine. When I try to deploy ...
2
votes
1answer
639 views

Provisioning Custom Content Types and Document Templates

I am using a complete 2010 environment (SP,VS and Word) but when I provision my content type using XML, while it provisions everything and appears to work, when I create a new Word document from my ...
2
votes
2answers
893 views

When can the content type be updated in code?

I have created an event handler for ItemAdded so that when an item is added on the site, my code checks to see if it's a folder. If it is, it should change the content type of that folder to a custom ...
2
votes
2answers
1k views

Is it possible to use DocIdRedir.aspx for linking to the display form

We are using a Link to a Document contenttype. The url used in this contenttype contains an url like http://ont/abc/_layouts/DocIdRedir.aspx?ID=N57YVKN5WQKX-2-2247. When testing this url it always ...
2
votes
1answer
272 views

Fields and FieldLinks return the same two values for all Content Types

I have an application that loads all of my content types into a drop down list. When an item in the drop down list is selected I would like to get a list of the columns for that content type but each ...
2
votes
1answer
4k views

Add new column to an already existing content type with a feature?

Is it possible, with Sharepoint 2007, to add new columns with a Feature to a content type that is already being used in some lists?
2
votes
2answers
142 views

What are Content Types and what can I do with them?

I am following Wrox Book Sharepoint 2010 Professional Development. In chapter 9 (Electronic forms) they told me to create a training list with some columns - done. On chapter 12 (Workflows), they ...
2
votes
1answer
410 views

Content types and list forms

I've encountered the strangest problem. I've got two features: ContentTypes: contains a couple of custom fields and a content type (based on plain ol' 0x01) called Withdrawals that uses them. Scoped ...
2
votes
2answers
65 views

EventDate field name gets changed/ignored

I have a custom content type derived from a publishing page. I want it to also have the fields from the event content type, so I added the fields exactly the same as specified in the ctypeswss.xml ...
2
votes
1answer
46 views

List Content type mandatory fields

We have a list content type in SharePoint 2010. Some fields are mandatory. When not all mandatory fields are filled out, we only get to see the red error message for the date picker field. Once the ...
2
votes
2answers
321 views

How to determine item ContentType in FormControl (FieldIterator for instance)?

I've implemented my ListFieldIterator to change the way field controls rendered. I'd like to change the behaviour of form depending on the item content type, but any attempts to determine ...
2
votes
1answer
200 views

rootFolder.ContentTypeOrder throws unexpected error for sandbox solution

I'm trying to add content types into a library list, in order to make "Visible on New" option ticked. Firstly I enabled contenttypes in the library, then I want to do this: SPFolder rootFolder = ...
2
votes
1answer
535 views

How to rename a Content Type associated to a List

I'm tring to change the content type name of a specified List. I have a Content Type called (for example) ExampleCT that I change from Site Settings in "Example CT" pushing down changes to childer. ...
2
votes
2answers
198 views

All columns getting added to Document content type in migrated site

I migrated a SPS 2003 site collection to MOSS 2007 using database migration. There are already some document libraries in the SPWebs of the site collection. Some of the libraries are just the standard ...
2
votes
1answer
576 views

How to create Item of a particular Content Type from Ribbon

I have a document library which has two custom types linked to it. From UI I have two buttons to add that items.. I have two simple "ribbon button" and I want to use that to create the new Item from ...
2
votes
1answer
209 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. ...
2
votes
1answer
3k 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 ...
2
votes
3answers
1k views

Using Content Types programmatically

How can I use a content type programmatically? example: I have a content type called "Doc Template1" and I have added it as a content type in my document library. And when I click New Document > Doc ...
2
votes
3answers
3k views

Page layout not showing Content type fields

I'll try my best to describe this problem as it is quite tedious. We have a sharepoint solution, in where we create Columns that are deployed through a feature. I added my custom columns to a custom ...
2
votes
1answer
248 views

How to remove/hide the title field from a list

I am creating custom list and do not want to use the title. I know I can rename, but I do not want to do that. Some weeks ago I did do this (but have forgotten!!). I went to advanced settings, ...
2
votes
1answer
667 views

Custom Inerited Note Field 255 character limit and no HTML for Editing?

Two issues I have with the same column type. Using Sharepoint 2010. I created a custom Content Type (for use as news articles content Type) and added a couple of custom columns. I have a issue ...
2
votes
2answers
241 views

Content Type Created By, Created On, Last Modified

I'm looking to determine who created a content type and when. The standard page for a content type does not provide this information. Can someone direct me to where I can find this information in ...
2
votes
2answers
1k 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?
2
votes
2answers
4k views

Permissions on Content Types?

I am using sharepoint 2010 and made my own content type that inherits from the page content type. This content type is in a folder called "content types" I am having a weird problem where if the user ...
2
votes
1answer
1k views

Do Site Templates include content types in site collection

I had created custom content types in site settings that I was referencing with a list on a site. When I did a save as template from the site, would that have also saved the content types? I passed ...
2
votes
2answers
746 views

Changing OOB content types on selected lists

My customer want to have a global taxonomy for all content. I have created content types that inherit from the usual content types (Documents, Pictures, Pages) that will contain this taxonomy. To ...
2
votes
1answer
790 views

How to update choice field options with a feature upgrade?

I created a feature with a field definition with choices. These choices are bound to language dependent resources using the $Resources:file:key system. Resource files are included. As the feature is ...
2
votes
1answer
807 views

How do I set dynamic values for an SPFieldChoice?

I want to add choices programmatically to an SPFieldChoice so that its select box has values with Current Year - 5 to Current Year + 5. What is the best way to do this? Ex: 2005 2006 2007 ... ...
2
votes
2answers
368 views

Defining using xml a content type, custom column and list instance in single feature

Is it possible to define a content type, a custom column, a list instance and associate the contenttype to the list using xml, all within the same feature or do they need to be seperated into seperate ...
2
votes
2answers
2k views

Restrict search to one field in a content type?

Simple question really how can I restrict the SharePoint search to only search against one field for a content type. I can create a scope for the content type but how do I go about restricting the ...
2
votes
1answer
25 views

Content type eventhandlers gets bound to list

I have a custom parent content-type on which I apply 6 event-handlers. I then have 24 content-types based off of the parent content-type - thus inheriting the 6 event-handlers. - All defined in XML I ...
2
votes
1answer
33 views

Solutions for a long list of content types

We have a library with about 18 content types available when creating a new document. I know our users will not like the long dropdown list that is rendered when clicking new document. Are there any ...
2
votes
2answers
87 views

SharePoint 2013 Search Issue

We have setup SharePoint 2013 on windows 2012 server. It is have cumulative update until August. Its version is 15.0.4535.1000. I have created two site content type of document type. Both content ...
2
votes
2answers
267 views

Custom Content Type always results in ArgumentException

I created a custom content type and provisioned it as a solution for SharePoint 2013 (PU March). When I create a new page in a list, bam yellow page of death. To rule out an error I created a custom ...
2
votes
1answer
121 views

Can Sealed Content Types Be Deleted or Modified Programatically

I am creating some content types programaticaly and have set the sealed flag to true which seems to prevent deletion by users and code. First how can it be deleted? Second, what is the proper way to ...
2
votes
1answer
95 views

DIP not displaying when doc template saved on SP

I have saved a document template and a Document Information Panel into a templates library in SharePoint 2013. If I associate the document template using a url to a content type (eg. ...
2
votes
1answer
77 views

How to create a search scope for content type in a sub site?

I have parent site i.e sharepoint.microsoft.com & a sub site sharepoint.microsoft.com/child/ Now a content type named "Problem" in created in sub site. I would like to add this content type in ...