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)

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
419 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
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 ...
1
vote
3answers
797 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
287 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
805 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
1k 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
187 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
793 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
2k 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
1k 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
538 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> ...
6
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 ...