Questions tagged [content-type]

A content type is a reusable collection of columns and settings that can be applied to a certain category of SharePoint content

Filter by
Sorted by
Tagged with
36
votes
9answers
36k views

How to delete a content type part of an application feature?

I'm developing a solution in SharePoint 2010 that deploys a content type. I've now made a change to the content type and want to delete all its old references, remove it, and redeploy. Unfortunately ...
22
votes
3answers
2k views

Feature based XML vs. Object Model: Which is better for content type development?

I've been researching a few different ways to create content types and I recently discovered that you can use the Object Model to do this. All of the examples I have found online typically use XML ...
22
votes
4answers
7k views

Content types vs. custom list field

This is a question about best practices and the intent of the designers of SharePoint. I'm pretty new with SharePoint, and have only worked on pretty small projects. I often find myself creating ...
20
votes
4answers
8k views

Why is Word document created from template saved locally, instead of to the document library?

I have created a custom content type at the root of my Site Collection and set this content type to use a Word document template, which resides in a different document library on the root site. (The ...
17
votes
8answers
7k views

Content Type Event Receivers Impossible to Remove

I have a very odd situation in my SharePoint staging environment. We recently stood up a new SharePoint 2010 server (single WFE + a DB server), and attached a backed-up content database from our ...
16
votes
5answers
7k views

Is there a way to see if an SPField was created by a user?

I have some code where I am going through all of the Fields that belong to a content type. I'm curious if there is a way to check to see if the SPField was created by a user or if it is a system ...
16
votes
2answers
379 views

Do all Content Types require Site Columns?

I'm just wondering if Content Types are always only made out of Site Columns, or if it's possible to define Fields that only exist on that Content Type? (Like how you can add a custom Column to a list)...
14
votes
7answers
26k views

Add “New document” button to home page

I have a fairly simple SharePoint subsite that has two elements: the home page a document library The document library has two content types associated with it. What I would like to do is add a link ...
12
votes
3answers
22k views

How to find all documents of a certain content type?

I have an content type I would like to delete, but when I try I get an error message saying that it is still in use. Is there a way that I can find all documents that are still using that content ...
12
votes
4answers
15k views

Show More by Default

I am using SharePoint 2013 and I have a custom contentype inherited from task. Because there are too many fields, by default there is a Show More option to show all the fields. Is there a way to ...
12
votes
4answers
8k views

Best practice for deploying Site Columns and Content Type

What is the best practice for creating a site column or content type in SharePoint 2013? Is it still recommended to use farm solutions? I was hoping we could do something with the new app model, but ...
11
votes
1answer
19k views

Adding a site column and add it to a content type from PowerShell issue

Within a PS script, I'm trying to add a site column and add this column to a custom content type. Here is my script : add-pssnapin Microsoft.SharePoint.PowerShell -EA 0 function ...
11
votes
6answers
28k views

Create a link to “New Document” template link

I'm simply looking to create a link on my home page that goes directly to the button that you click to open a new instance of the template you created in your content type. If I described that wrong, ...
11
votes
3answers
6k views

Is there a list of SharePoint 2007 WebParts, Features and ContentTypes that SharePoint installs with?

Where I can find a list of all the Web Parts, Features and Content Types that are available to a regular SharePoint installation? What I need to do is identify any of the above in a SharePoint site ...
11
votes
2answers
1k views

Best way to package publishing content types

I'm currently planning on how to package my Publishing content types in a WSP to make deployment in production easier. I came a cross the following choices 1- create a feature receiver and ...
11
votes
1answer
831 views

How to create ContentType with FieldLinks using REST on O365

I'm trying to create a ContentType with FieldLinks using REST only (no SP.ClientContext) on SharePoint Online, but I'm not able to make it work. Creating ContentType by POSTing to _api/Web/...
10
votes
3answers
42k views

More than 255 characters in multiple lines of text?

I have an InfoPath Form which submits the text of a textbox and saves it in a SharePoint list. Whenever a user types in more than 255 characters and I want to edit the element in the SharePoint list (...
10
votes
2answers
5k 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> ...
10
votes
2answers
19k views

Get all Files from sub folder of a certain content type

my problem is I have a document library with sub folders. Also the document library got more than one content type. Is there a way to create a CAML or LINQ query to get all files of a certain content ...
10
votes
1answer
3k views

Opening the default “New Document” editor for a given ContentType from an external C# application (Sharepoint 2010)

I'm currently working on integrating some SharePoint functionality to an existing C# application we have here. Most of the requirements have be fairly easy to implement: I'm using the ListData REST ...
10
votes
0answers
388 views

Content search and content type

In SP 2013 on-prem publishing site, I have a Content Search WebPart that shows a list of pages by querying for the custom content type id, and it worked fine until I edited the navigation settings on ...
9
votes
1answer
18k views

How to update a deployed content-type?

I created a content-type and applied it inside a document library. Now, if I go to the conent-type gallery and delete one of the fields, and then go back to the library and view the available columns,...
8
votes
6answers
15k views

Set “Allow management of content types?” set to “Yes” within a Content Type or List Definition

How do you set "Allow management of content types?" to "Yes" within a Content Type or List Definition?
8
votes
2answers
11k views

How to adjust the title column in custom content type in SharePoint 2010?

I am creating a custom content type and it is working correctly with the exception of the Title column. My content type defination has the Title column added to the FieldRefs and I am trying to both ...
8
votes
2answers
4k views

Can I order by Content Type in a CAML query?

Is it possible to order by content type in a CAML query? I seem to always get the same result no matter what I do with the Order by. Ordering by ID instead works perfectly. query.Query = @" <...
8
votes
1answer
5k views

Choice field changed - How to propagate the change down to all lists that used it?

I have a feature (Web scoped) with a content type which contains a field (Type="Choice"). Values were A, B and C. I've created a list based on this content type and added some elements in it. I ...
8
votes
1answer
770 views

SharePoint ContentType Lifecycle Management

SharePoint 2010 introduces the new UpgradeActions element to the feature manifest which allows content type (CT) lifecycle management by using the new AddContentTypeField element to add new fields to ...
7
votes
1answer
7k views

Can't hide the title column in a custom content type

I'm building a custom content type. I've set a bunch of site columns I add to the content type. The content type is used in a custom list definition within a ContentTypeRef node. I'm also willing to ...
7
votes
1answer
3k views

Sharing custom content types across multiple web applications

Our SharePoint 2010 instance have 3 Web Applications, lets just call them A B and C. I have the managed-metadata service pointed to web application A. The content type hub service is enable for A. ...
7
votes
2answers
41k 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 ...
7
votes
3answers
5k 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 ...
7
votes
4answers
907 views

Can no longer publish content types from hub in o365

I was working with content types yesterday in the content type hub. I was able to publish items. This morning I can't publish things anymore. I get the following error: Sorry, something went wrong ...
7
votes
2answers
2k views

Only allow Document Sets in a Document Library (ie no Folders)

I'm exploring the use of Document Sets as a more managed approach to file handling (in the recordkeeping sense) in SharePoint. The chief problem I have is that Document Sets are derived from Folders, ...
7
votes
1answer
3k views

Create a Document Library Item base on a ContentType with JavaScript Object Model (JSOM)

I'm trying to create a new item in my Entreprise Wiki Pages Document Library. It's associated with a News Content type. I was able to retrieve the SP.List object (myList), the SP.ContentType object (...
6
votes
5answers
11k views

How do you hide “All Day Event” and “Recurrence” from Event content type?

I've created a custom site content type that extends from Event. But I can't figure out how to hide the "All Day Event" and "Recurrence" columns for all lists using my custom content type.
6
votes
3answers
16k views

REST: Filter List Items by Content Type Name

I can't for the life of me figure out what's wrong with this URL: _spPageContextInfo.webAbsoluteUrl + String.format("/_api/web/lists/getbytitle('{0}')/items?$select=ContentType/Name&$expand=...
6
votes
2answers
7k views

Parent content type

In SharePoint 2010, is there any chance to create a parent content type? If so, how? I want to create a new parent content type and inherit it for other types.
6
votes
1answer
13k views

How to get all items with a specific content type using REST Api

There are five Custom Lists in a site collection, all have same content type. I would like to get all items from those five lists using rest api. Is there a way to get all items from all lists having ...
6
votes
3answers
412 views

Ups and Downs of Content Type Creation Methods

There are several places online I've read to only create content types in feature XML. However, the reason for this seems to be to keep the content type as deployed in a feature. As I understand it, ...
6
votes
3answers
3k views

Content Type Inheritance

In simplified form, I have the following situation. A Parent content type <ContentType ID="0x0100db5b9dac9c5f4d098820f922eebf3b39" Name="Parent" Group="Example Content ...
6
votes
4answers
17k 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 ...
6
votes
4answers
18k views

SharePoint 2010 Get Content Type Programmatically

I've created several content types that inherit from the document content type in the site content type lists. Please refer to the image below: How do I get these these content types programmatically?...
6
votes
2answers
9k 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 ...
6
votes
2answers
160 views

Migrating our on-premises sub-sites to be modern site collections. how we will be managing the content types and site columns

I have an on-premises sharepoint team site collection, and it has 25 sub-sites. now i want to migrate this on-premises site collection and its sub-sites to be inside sharepoint online. and i want to ...
6
votes
4answers
7k views

Get ContentType in ItemAdding Event Handler

I need to change a field in the item being added based on its content type. This needs to happen before the item has been added - hence ItemAdding event receiver. Using ItemAdded is no good since the ...
6
votes
3answers
9k views

Content Types “New Item”

I am working on the Knowledge Database in SharePoint, so I have created several content types with lists. I want customers to be able to create a new article and get a different FORM based on the ...
6
votes
2answers
2k 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 ...
6
votes
3answers
3k 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 $...
6
votes
3answers
231 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 ...
6
votes
1answer
98 views

Content Query Web Part - Change Content Type upon link opening?

[Edited from original post] I'm trying to open the links that come up from my Content Query Web Parts. However, I'm having a problem which I'll now explain: In my list, I have four content types - ...

1 2 3 4 5 31