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

create content type from workflow task

I have been looking all over the internet for instructions on how to create a content type based off the Workflow Task type. Everything I have found thus far seems like it is incomplete or has gaps ...
0
votes
1answer
770 views

I can't remove Content Type programmatically? How I can do it? SharePoint Foundation

I create in SPD 2010 workflow which create custom content type with column. I removed workflow, list and column and I also want to remove content typ but I can't do it, SharePoint shows this info "The ...
0
votes
2answers
4k views

Document Library in Site Definition with custom content type

I am attempting to specify a custom content type onto a reference library which is being provisioned in a site definition but am so far failing. I have read:- Deploy document library with multiple ...
1
vote
0answers
105 views

Help understand ContentType/List upgrade

Everywhere i read on the web it says that Content Types and List once deployed through Xml files they cannot be updated anymore. I have created a VS 2010 solution, created a SharePoint List ...
0
votes
1answer
111 views

A column is not appearing in GroupBy option when editing view

I have a document library created from a custom content type (which inherits from Document type). The Document Libraries are created via feature activation using CAML in the Elements and a List ...
2
votes
0answers
89 views

CQWP displays error when pointed at specific subweb

I wonder if anyone can help. I have a content type (FAQ) that I deploy in several different webs. I then use a CQWP to display all the FAQs used (aggregating them from different subwebs). This was ...
0
votes
1answer
103 views

Help to understand content type

Given the below definition of a content type: <List xmlns:ows="Microsoft SharePoint" Title="Algorithm Types List Definition" EnableContentTypes="TRUE" FolderCreation="FALSE" ...
0
votes
1answer
999 views

Upload document : Default value not applied on choice column if baseFieldControl.ControlMode = SPControlMode.Display

I created a new site column, a choice column with 5 values to pick from in a drop down list : 1, 2, 3, 4 (default value), 5 I then created a document content type using this column. The problem I am ...
0
votes
2answers
374 views

ContentType.FieldLinks.Add() issue with hidden and required

I have a feature that does the following in the feature activation Code : Creates a new SiteColumn (Type=Text, Hidden=False and Required =True) Set the french version of the Name (using ...
0
votes
1answer
329 views

If properties.Afterproperties[“ContentType”] is null, is it safe to assume that the item is a document?

I need to add a specific behavior in the ItemAdding event when the item added is a document, but I noticed that when using the "Upload document" or the "Upload Multiple Documents" features in ...
3
votes
1answer
787 views

How to restrict/hide OOTB document libraries creation

Is there a way to restrict the out of the box document libraries like "Document Library" "Picture Library" etc and just have custom document libraries being shown in the pop-up below?
1
vote
3answers
1k views

Define contenttype with list

I have defined my list definition as following: <List xmlns:ows="Microsoft SharePoint" Title="Requests List Definition" FolderCreation="FALSE" Direction="$Resources:Direction;" ...
1
vote
2answers
1k views

Difference between a content type and a list template

I understand that content type gives the definition for the set of fields in a list which can be reused while creating many other lists and a list template gets a copy of an existing list with or ...
2
votes
3answers
1k views

What is the best way to provision Content Types and managed metadata columns in SharePoint 2010

What is the best way of provisioning ContentTypes, Columns and Metadata columns in SharePoint. Keeping in mind that we have two approaches of 1) SP object Model and CAML (declarative way). Which ...
1
vote
2answers
1k views

how to remove a published content type from subscribed site collections

I have a small Visual Studio 2010 project with one farm level feature that I deploy to a site collection which is configured as my content type hub. The FeatureActivated event adds a site column and ...
3
votes
1answer
475 views

SharePoint Framework for Programmatically creating Fields, ContentTypes etc

I am looking for a SharePoint Framework/API which can be used to programmatically create Artifacts like Fields, Lists, ContentTypes etc using SP 2010 Object Model. The objectives are: Provide ...
0
votes
1answer
5k views

Setting file Content Type using Client Objects

Setting the Content type the same way as setting other metadata fields does not work in ClientObjects. Anybody knows why? Here is what I do, and works for other columns: var fci = new ...
0
votes
1answer
586 views

Why is the associated lookup field not on the dispform.aspx?

I have three lists: Events (calendar) Customer1 (custom list from scratch) Customer2 (custom list from template) When I added the lookup of Customer1's ID and added the associated field "Title," ...
1
vote
2answers
915 views

Add field to content type in specific position

THe code below is working perfect, however I need the new field to be in the 5th position, and not at the end in the forms. Any idea how? private void UpdateDossierContentType(SPWeb parentWeb) ...
0
votes
1answer
557 views

List of Sub Sites and Workspaces

I would like to create a list of Project Sites and links to pages, on the Projects site. To contents of Sites and Workspaces. This process should be automatic when you establish a new project site, ...
1
vote
0answers
634 views

Adding/removing items to/from a DropDownChoiceField

I can't seem to manipulate the items displayed in a DropDownChoiceField I have that's tied to a field on the custom content type with big, really frustrating problems. This field is only visible in ...
3
votes
2answers
2k views

Calculated column on Start Date in Calendar List Not working

In SharePoint Server 2010, I have a standard calendar list created with an attached custom content type. I'm simply trying to create a calculated column on the event's start date in the content type ...
0
votes
2answers
444 views

How to assign programatically an InfoPath XSN to a Content Type

I had some content types and some XSN infopath files... I can link it by web interface and this works well but I must do this connection during feature activated event... So... Is there any code to ...
0
votes
3answers
4k views

Display Calculated Field as link

in a custom ListDefinition I used a calculated field to format a Text into an URL. I'm developping in VisualStudio2010 for SP2010. Here is my ListDefinition: <Fields> <Field ...
0
votes
1answer
284 views

How do I add a new ContentType using Feature Upgrading?

I have created a new Content Type. How do I publish it using Update-SPSolution and feature upgrading? I added the following Code to my Feature Manifest: <UpgradeActions> <VersionRange ...
0
votes
1answer
357 views

Document Template - Columns from Content Type

I have a custom content type that inherits from the document content type, and has 10 columns (single line of text). A document template has been added to the content type from my local documents. ...
3
votes
3answers
3k views

Trying to hide the title column the sharepoint way

I am currently just messing around with defining lists via the elements.xml Content Type <?xml version="1.0" encoding="utf-8"?> <Elements ...
0
votes
1answer
4k views

Error Message - Field type Int is not installed properly. Go to the list settings page to delete this field

I saw similar post on SO but it didn't worked out for me. I've created a List Definition project in VS. On one of the fields I set type to Int instead of Integer, and tried to deploy List Definition. ...
0
votes
1answer
897 views

Sharepoint 2007 lookup column

I have a site dropdown column using a list as the datasource (lookup). I was looking for a way to have the column be both required and have a default blank value. I read that is is not possible ...
1
vote
1answer
669 views

How bind a custom ContentType with activity CreateTaskWithContentType ?

When I create a task with activity "CreateTaskWithContentType", I can't bind a custom ContentType with the list "Tasks". For the moment I try to bind my CT with the correct path in properties ...
1
vote
1answer
491 views

How to specify content type when creating a list item using web services?

This is what I have tried so far: string newPageXml = String.Format(@"<Batch OnError='Continue'> <Method ID='1' Cmd='New'> ...
0
votes
1answer
306 views

Field required in Content type, but not in my list

I don't know why but when I try to bind a list with my content type, fields having a status to "Required" in my content type are not Required at all in my List. I'm binding the field with this ...
1
vote
1answer
879 views

Extending Content Types from Content Type Hub

I have defined a content type in content type hub. I would like to use this content type on a site (other than the hub) but also to extend it with an additional (lookup) column. Is it possible to do ...
0
votes
1answer
572 views

Problem tying textfield to a content type field

I have a SharePointWebControls:TextField control on the page. It's tied to a field that has been defined as normal in the xml (I've gone through this with a fine tooth comb so I'm 99.999% sure the ...
0
votes
1answer
1k views

How do I make Title property mandatory on a custom content type?

As title says, I want to use the standard SharePoint Title property, but I need to make it mandatory. It's not an option to do this through the 'Documents' settings of the UI, I need to define it as ...
0
votes
1answer
59 views

How to add extra custom content type to Contacts based ListInstance

I am trying to build a custom ListInstance for deployment in Visual Studio. It should be based on the Contacts template so it can be opened in/linked to Outlook, but I also want to add two other ...
1
vote
1answer
923 views

Hide content type on “Add new item” ribbon button in folder

I have a problem which concerns hiding content types in the "Add new item"-Ribbon-Button. In Visual Studio, I defined 2 custom content types (derived from the default folder content type) and a ...
2
votes
1answer
293 views

Add content types programmatically into SPList takes too long

I've dozens of CTypes to add to an SPList programmatically (cause content types are provided by CTH) and each oSPList.ContentTypes.Add() takes almost 1sec. Is there any other approach ou code ...
1
vote
1answer
550 views

ContenTypes on List Definition not added

I've an ListDefinition with some references to existing Content Types (provided by CTH) but when the list is created the content types are not added. elements.xml <Elements ...
0
votes
1answer
274 views

How to iterage through Message content type in Discussion list

I need to iterate through all the columns (default + custom) in Message content type in Discussion list. i have used this code: //select a single discussion (in this case, the first one), to view ...
3
votes
1answer
991 views

“No item exists at https://<internal_url>” after file upload when accessing the site externally

I have created a SharePoint 2010 site that is accessible both internally and externally. I have created alternate access mappings for https://<internal_url> (Extranet) and ...
2
votes
2answers
341 views

Can I create a template from a list?

Can I generate a word template, containing information from a list? Suppose I have a list containing "department addresses", and I want to generate letter heads for each department automatically, ...
0
votes
1answer
102 views

How to change boolean variation on document template

I've a bool (checkbox field) as a template field, and it shows true - if checked - and false - if not - on the template field content and I want to show up different display text. what's the best way ...
1
vote
1answer
2k views

Find content types for given column

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfield.listsfieldusedin.aspx $web = Get-SPWeb http://”sitecollectionurl” $column = $web.Fields[“Column Display Name”] ...
1
vote
0answers
715 views

Add files to document library based on content types

Okay, I am using following powershell script to add files to document library. Initially, the library only had built in content type "Documents". But now its another content type "Link to a Document". ...
1
vote
1answer
816 views

Library ECB shows “Change New Button Order” for all users

We have a document library which has content type management enabled. The library allows two content types, one based on Document, the other on Document Set. We also have a custom action attached to ...
1
vote
1answer
102 views

Description of site content types ignored?

I created site content type element and write some text into Description attribute. I deploy it (as farm solution). When I look at this content type in Site Content types section, I found that ...
1
vote
0answers
146 views

applying a managed meta-data column to a content type vs adding it to a view

Hello this is my first question on here so please be gentle. i have just provisioned a new document content type called GCDocument (whose parent is document) along with some new fields, such as a ...
4
votes
1answer
290 views

Assigning Icons to Content types

I have added a couple of content types that inherit from "folder" and some other from "item" (and each other, but they're not the issue). How can I, if that's possible at all, set another icon for my ...
1
vote
1answer
160 views

Non-global fields for custom content types?

I've been tasked with creating a fairly complex system in sharepoint 2010. Coming from a background of from-scratch .NET applications, I'm used to defining tables with their own "local" columns. My ...