Skip to main content

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

Content Type field on NewForm.aspx

I have a custom list and I am using content types to add items to the list. I am using OOTB forms for new and edit items. One field that I see on the EditForm.aspx is the one that I hope I get on the ...
Aamir's user avatar
  • 411
12 votes
3 answers
25k 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 ...
Abe Miessler's user avatar
  • 6,755
10 votes
2 answers
23k 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 ...
Markus S's user avatar
  • 302
6 votes
1 answer
16k 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 ...
Medes's user avatar
  • 2,086
36 votes
9 answers
38k 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 ...
Alex Angas's user avatar
  • 5,961
16 votes
5 answers
8k 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 ...
Abe Miessler's user avatar
  • 6,755
3 votes
5 answers
15k views

How to set columns visible only in Display Form on a Column used by a Content Type

I have a column that we will call C. This Column is associated to a Content Type (CT). If I go to the properties of the CT -> Column C I can set the column to be Facoltative or Hidden: If I put it ...
Ziba Leah's user avatar
  • 1,987
13 votes
6 answers
32k 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, ...
spex5's user avatar
  • 808
11 votes
1 answer
21k 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 ...
Steve B's user avatar
  • 7,508
9 votes
1 answer
19k 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,...
bgmCoder's user avatar
  • 3,581
8 votes
2 answers
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 ...
Robert MacLean's user avatar
8 votes
3 answers
46k 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 ...
Pete's user avatar
  • 639
7 votes
1 answer
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 ...
Steve B's user avatar
  • 7,508
6 votes
3 answers
250 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 ...
ngm's user avatar
  • 1,023
5 votes
4 answers
4k views

Rest API to pull all list items that uses a unique Content Type under a specific URL

I am on SharePoint Online environment, where i have a site(Lets call it Site A) https://xxxxx.com/sites/sitecollection/SiteA and multiple sub sites under Site A (Subsite B, Subsite C, Subsite D and so ...
AXA240778's user avatar
  • 499
5 votes
5 answers
22k views

Site Content Types screwed up. How to restore to default?

I need to change a root site's Item Content Type settings back to the default values. I also need to do this for all other Content Types that inherit from Item. Can someone recommend a safe an ...
Chris's user avatar
  • 143
5 votes
4 answers
20k 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 ...
dbobrowski's user avatar
4 votes
1 answer
13k views

Custom list definition - fields in Elements.xml and Schema.xml

I'm creating a custom list definition in SharePoint 2010 by following this article. The tutorial is OK and it works. There is a thing that I don't understand though. Why do I need to insert the ...
JohnDoDo's user avatar
  • 1,169
3 votes
1 answer
955 views

Retract solution (WSP) in Visual Studio 2013 - Delete Content Types

When I use Retract command in VS 2013 on my WSP, content types do not get deleted on the site. So whenever I want to update content types, I need to recreate the site. I've done some analysis on this ...
Slaven Semper's user avatar
2 votes
1 answer
5k views

Document Sets don't enforce allowed Content Types when multiple Doc Set CT are available

I fear that this is indeed a bug, but I'm asking just to be sure (SP1 and the CU haven't provided any change to the issue). I have a document library that utilize multiple document set content type (...
SPArcheon's user avatar
  • 6,866
2 votes
2 answers
4k 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 xmlns="http://schemas....
Michael Stum's user avatar
2 votes
1 answer
8k views

Get Site Content Type ID by Content Type Name using REST API

I am having some of the Site Content Types available in my SharePoint 2013 site. Now I want to assign this Site Content Types to my Document Library using REST API. I have tried code from here and it ...
Aakash Maurya's user avatar
2 votes
3 answers
7k views

SP 2010, Is it possible to set permissions at Content Type Level

Say I have a document Library "TravelRequests" and five different content types associated with library. Is there a way to apply permission for a given content type "ManagerCT"? When managers are ...
Raula Ryan's user avatar
2 votes
2 answers
2k views

Multiple Information Management Policies on Content Type - but just at Site-Level

I am working with SharePoint 2016 On Prem. My goal is to add an Information Management Policy to a document library at the site level that deletes all files older than 30 days. When I create the ...
Taterhead's user avatar
  • 624
2 votes
1 answer
7k views

How to set content-types per folder within a Document Set

I've searched through lots of similar questions, but surprisingly have not found one that matches up with what I am doing. I am using Document Sets for a HR document library; each Doc Set ...
Tally's user avatar
  • 2,253
2 votes
1 answer
1k views

Different sets of options in a lookup or choice column depending on the content type

I have a list content type and other content types that derive from it. I need to add a lookup or choice column to the content type (or the list itself) just so that each child content type or list ...
Aamir's user avatar
  • 411
2 votes
3 answers
4k 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 ...
Brian's user avatar
  • 1,602
1 vote
1 answer
2k views

Macro enabled template doesn't open Word in SharePoint Online 'New Experience'

I have created a new document content type and associated a dotm template to it to be used on a document list. When I'm in the classic experience of the list and select the template from the 'New' ...
Nathan R's user avatar
1 vote
3 answers
4k views

Modifying a default value for hidden column will set it as optional instead of hidden

Sometimes you are faced with problems that you can not understand. Now I have a hidden column inside my Issue tracking list, which is used to store a series of string to be read by the list workflow. ...
John John's user avatar
1 vote
1 answer
5k views

Create a folder structure in a discussion board

How can I create a folder structure in a discussion board? I have already tried this solution: 1) Create a new Site Content Type say called 'Thread Folder' based on the Folder Content Type with ...
andDaviD's user avatar
  • 363
0 votes
2 answers
2k views

Hidden content types

All the default content types are being hidden in our sites how to get them visible on all our sites.We are having SharePoint 2010 and i could see all the content types visible when I open the site ...
vikky2266's user avatar
0 votes
0 answers
320 views

Content Type Subscriber has its last run = N/A

I tried to publish some content types inside my site collection hub, but the content types were not published correctly, as they did not appear under custom content types at the other site collections....
John John's user avatar
22 votes
3 answers
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 ...
Abe Miessler's user avatar
  • 6,755
21 votes
4 answers
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 ...
Geir Smestad's user avatar
  • 1,680
17 votes
8 answers
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 ...
JasonV's user avatar
  • 793
14 votes
7 answers
29k 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 ...
Chad Dybdahl's user avatar
12 votes
4 answers
17k 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 ...
Remko's user avatar
  • 3,267
11 votes
1 answer
2k 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/...
eirikb's user avatar
  • 7,415
10 votes
2 answers
6k 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> ...
Philipp Schmid's user avatar
8 votes
6 answers
17k 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?
Tim's user avatar
  • 801
6 votes
1 answer
4k views

Modern Document Library doesn’t use default Content Type

When creating a new document library and selecting Document Template “None” or “Microsoft Word Document” (which is default), you get a list of office document template to choose from when you create a ...
Benny Skogberg's user avatar
  • 25.5k
6 votes
3 answers
10k 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 ...
Ja Ci's user avatar
  • 61
6 votes
2 answers
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 ...
AyKarsi's user avatar
  • 509
6 votes
2 answers
344 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 ...
John John's user avatar
5 votes
1 answer
14k views

The file name you specified could not be used. It may be the name of an existing file or directory

SPContentTypeCollection listctc = list.ContentTypes; In that line,. I am getting this error: Invalid file name. The file name you specified could not be used. It may be the name of an existing ...
Luis Valencia's user avatar
5 votes
3 answers
2k views

Deleting a site content type in Sharepoint 2007

I'm trying to delete a custom content type that I've created, but I'm getting an error when I try to do so: The content type is in use. at Microsoft.SharePoint.SPContentTypeCollection.DeleteFromWeb(...
Music Magi's user avatar
5 votes
2 answers
5k 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 ...
jason.venema's user avatar
5 votes
3 answers
2k 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 ...
MichalPisarek's user avatar
4 votes
1 answer
3k views

Programmatically create a new document based on a content type template

As in the title, I need to programmatically create a new document based on a content type template. Does anyone know the best way to do this? Normally, to add files you use Web.Files.Add(), but all ...
MgSam's user avatar
  • 822
4 votes
3 answers
28k views

How do I programatically change the content type of an existing file?

Is there some way to change the content type of a file using PowerShell? Ideally I'd like to write a function that one would point at a specific document library and it would pull down an array of ...
newuser's user avatar
  • 1,547