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
890 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
551 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
622 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
439 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
275 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
356 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
881 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
660 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
481 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
302 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
857 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
565 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
913 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
291 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
545 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
273 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
978 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
340 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
101 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
707 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
803 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
289 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
158 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 ...
2
votes
1answer
2k views

How to add required column comments in library Sharepoint Fundation

I try to add required column "comments" in library but I have problem, when I add column and I check in "Require that this column contains information:" when I try to save this file (.doc) I don't see ...
0
votes
2answers
525 views

How is content type inheritance set?

I am building a WCM site. I have a custom Content Type for my pages, set at the Site Collection level. When I create a sub site, however, that content type is not present in the Document Library ...
1
vote
2answers
187 views

Provision a file through a module (CAML) and choose its Content Type

How do you provision a file through a module (CAML) and choose its Content Type? Is it even possible? The normal behavior for a new item is to get the default content type.
1
vote
1answer
470 views

How does Content Type Inheritance interact with retention policies?

Are there any issues with defining retention policies on a hierarchy of custom Content Types? I want to be able to define retention policies in a flexible manner, with a root Content Type that has the ...
1
vote
1answer
2k views

List Templates and Custom Contenttypes missing document template on list creation

I want to create a new document library definition for general use in our SharePoint environment. This new list has some predefined content-types. Users will add this list themselves one or more times ...
1
vote
0answers
55 views

Removing System Content Types

I have deployed a Content Type Hub which has my organization's "Primitive" Content Types. These types are obviously inherited from the System Content Types (Document, Item, Announcement, etc..). Now, ...
0
votes
1answer
402 views

How to move content within fields in a page layout?

I'm working on a requirement where I'm adding a few fields in an already existing Page Layout and also renaming all the fields. After adding the fields via code,I want to move content within fields ...
1
vote
1answer
1k views

How to update all elements child of a Content Type programmatically

when (by web interface) user access to a content type (in site settings -> content types) and adds or remove a column there is a flag near the end that says something like: "Update all content types ...
7
votes
1answer
5k 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 ...
3
votes
2answers
823 views

How to change the Type icon of a particular content Type

I'm creating some Content Types... Is there any way to put inside the XML the information to describe the Icon of a Specific content type? Something that overrides the document type or the folder ...
1
vote
2answers
518 views

How to hide / remove / rename “Name” propertie from folders

I have a content Type that inheritate from Folder (named F_CT) to content my other type elements (I_CT)... When I Click to create a new F_CT Sharepoint asks me how all the F_CT fields and "Name" as it ...
0
votes
1answer
370 views

Problem Updating Item of a Certain Content Type (deriving from Folder)

I'm encountering some problems updating some items in my Event Handler. I have a Document Library in which I have folders, items and folder of content type PRATICA, which derives from folder and has ...
1
vote
2answers
6k views

How to create custom EditForm and DisplayForm for custom content type?

I have developed a custom ASPX SharePoint application page using Visual Studio. I would like to use that page as the EditForm and DisplayForm for the custom content type. At the moment, my page is ...
2
votes
2answers
497 views

Is it possible to use powershell to change the content type of a page layout after its been uploaded to a masterpage gallery?

Im trying to automate as much of the upgrade I am working on and one of the manual steps is to change the page layout of 5 root webs of site collections, each of which has to have this new page layout ...
2
votes
5answers
6k views

Creating Document with workflow: The file test.docx cannot be opened because there are problems with the contents

I have a document library with two custom content types. If I use the web interface and choose New Document -> MyCustomType the document template opens up and I can create and modify the document and ...
1
vote
2answers
2k views

Custom SharePoint 2010 Documentset contenttype

I'm working on a custom contenttype of the type Documentset. I want to set the alllowed contenttypes, but this is not working, it's only showing the defeult document. I read several blogs but i can't ...
0
votes
1answer
75 views

Content type is not creating Parent properly

I am trying to create generic content type creation using following code. // Create a Content Type Information object ContentTypeCreationInformation _customcontenttype = new ...
1
vote
1answer
137 views

Getting library field parameters when inherited from a site column

The SetUp I have created 3 site columns. All set to not required fields. I have added these site columns to a content type. This content type I have added to a document library. The document library ...