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
3answers
2k views

Sandbox Content Type and Resource (RESX) File

I have a simple Sandbox Solution with a Content Type in it. The Content Type simply inherits from the Item content type. It adds no additional fields to it. I've added a Feature Resource file to my ...
2
votes
2answers
2k views

Content Type Hub push Content Types with Inherit=FALSE

We're deploying our custom content types to the content type hub with a feature. The content type with Inherits="TRUE" gets published to the subscriber sites without a problem. However for all content ...
2
votes
1answer
259 views

Random Hidden Fields On New Content Type

I have the following code used to programmatically create content types. The code creates and deletes the content type using a windows form app which I will eventually transfer to an event receiver. ...
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
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
63 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
141 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
3k views

How to get default content type of list programmatically

How can I get default content type of sharepoint list programmatically?
2
votes
1answer
115 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
3answers
4k views

Creating Document with workflow: The file test.docx cannot be opened because there are problems with the contents

I have a document library with two custom content types. If I use the web interface and choose New Document -> MyCustomType the document template opens up and I can create and modify the document and ...
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
323 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
1answer
57 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
467 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
990 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
1answer
209 views

Can't find a site column that DOES apparently exist

Well I've deployed a site column from my xml definition and upto now it's been fine. I then checked my content type (after some unexpected errors) and it's removed itself from the content type and is ...
2
votes
2answers
260 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
2answers
5k views

Why isn't “Column ordering” available in my list settings?

I want to change the column order visible when viewing or editing a list item. I have accessed the "Column ordering" interface via the list settings page on other lists in the past, but it isn't ...
2
votes
1answer
115 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
671 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
931 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
304 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
5k 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
143 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
414 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
1answer
944 views

Create a hyperlink to open a New List Item Content Type in modal View in SharePoint 2010?

I have been researching this for a while now and no where can I find a solution that works perfectly in a list with multiple content types. I needed to create hyperlinks on a page where the user could ...
2
votes
2answers
91 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
2answers
422 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
236 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
689 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
213 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
598 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
228 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
249 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
761 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
245 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
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?
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
768 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
835 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
855 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
1answer
2k views

Original creation date of word document

I have a word document created in, say, July 10 2010. When i upload it to sharepoint (say August 5, 2010) its creation date vaalue in sharepoint will be in Aug 5, 2010, and i can't find any trace of ...
2
votes
2answers
369 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 ...