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 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 ...
5
votes
4answers
393 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 ...
1
vote
2answers
88 views

How to “Security Mark” webpages/printouts based on list/library content

I am currently in an environment where we are getting ready to fully deploy SharePoint (WSS 3) to several departments and divisions that have some documents that contain sensitive data. They also may ...
4
votes
3answers
807 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 ...
1
vote
2answers
367 views

How to insert an Item with content type Folder

I have a custom list with a custom content type inherited from the Folder content type. When I insert a new item in the list I do it like this: newItem["Name"] = "New Folder"; newItem["Content ...
1
vote
2answers
913 views

Attaching an Event Handler to only one content type or list

Could someone help and explain how I can attach an event handler on a custom content type or a particular list? Currently, when I deploy my event handler as a feature and activate the feature, it is ...
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 ...
1
vote
3answers
5k views

Custom Form Template is not being used in SharePoint 2010

I have tried to create a custom form template but without success. I have followed several tutorials but it still does not use the custom template. If I change the template id to override the ...
1
vote
7answers
8k views

Deploying columns with content types in Visual Studio 2010

I've written a feature that deploys new columns along with a content type containing the columns. The feature is Site scoped and written in Visual Studio 2010 to deploy to SharePoint 2010. When the ...
3
votes
3answers
2k 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 ...
0
votes
2answers
743 views

SPList.ContentTypes.EventReceivers returns NULL

I am trying to create a feature that uses the API for associating an ItemAdded event receiver to a Discussion List. I was associating the Event Receiver to the SPList, however, i don't want the event ...
1
vote
0answers
368 views

Folder Content type gets lost when using a list template

I created a new folder content type that has several columns of data and then created some folders in a list using the content type. I then created a list template and included content. When I created ...
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 ...
3
votes
3answers
960 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 ...
1
vote
5answers
2k views

Get foreign key in external content type to show up in list view

I have come across blogs about how to setup an external content type. For example: ...
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. ...
2
votes
1answer
416 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 ...
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 ...
4
votes
1answer
2k 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 ...
1
vote
3answers
789 views

Why does my Sharepoint page’s custom content type change to “Page” when editing?

I have a custom Sharepoint 2007 publishing portal site definition with custom content types for the different page layouts. When editing a page (either in the root of the site or a subsite) using a ...
2
votes
0answers
278 views

Custom XML Document Content Type with ASP.NET Forms in MOSS 2007/WSS 3.0 [closed]

I'd like to create a custom content type in SharePoint 2007 (WSS 3.0) that inherits from the existing XML Document content type (i.e. an InfoPath form) but I want to use custom ASP.NET forms to edit ...
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 ...
1
vote
2answers
779 views

CQWP cannot find Body field in the Announcement content type

I can create a CQWP for the Announcement content type, but when I export the .webpart and add <property name="CommonViewFields" type="string">Expires,Date;Body,text</property> In my ...
1
vote
3answers
5k views

How do I determine where a content type is being used?

Months ago I made a content type that inherits from the Announcement type. I thought I put it in just three sites to test the content query web part, but I can't delete the type. How can I see which ...
2
votes
3answers
977 views

Can't seem to group by content type in document sets

I created two content types based on Document, no extra metadata, called Status Report and Timesheet. I then created a content type based on the Document Set called Project. Added a couple of site ...
1
vote
1answer
185 views

Contentype.Update(true, true) and ui validation

When using the sharepoint api to add field links to a content type, with code similar to the following: AddFieldLink(siteField, contentype); contentype.Update(true, true); I have specified ...
3
votes
2answers
2k 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 ...
2
votes
1answer
787 views

Content Type, document template and forms authentication

I have a custom content type defined, with a document template, similar to below: <ContentType ID="0x010100120A74C7DFDA4C6fA8C3E519B41F421E" Name="My Excel Library" Group="My ...
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 ...
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 ...
1
vote
3answers
939 views

Problem making fields 'required' when provisioning using XML

I am provisioning a SharePoint site column using the object model and an xml string as follows: using (SPSite site = new SPSite("http://myserver")) { using (SPWeb web = ...
1
vote
1answer
172 views

Adding new content type to existing libraries

A common issue with my customers is that they define a number of content types that should be available on a document library. That library is part of a custom site template and pretty soon we'll have ...
1
vote
3answers
536 views

Hide ContentTypes based on ListItem value

Users seems to have a hard time picking the right document template when the "New" list contains more then 50 items. As one of lists on the web contains a SPChoiceField it should be possible to limit ...
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> ...
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 ...