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)

0
votes
1answer
2k views

How can I add button to ribbon that visible only for specific content type?

I have document library and i want to add button that will be visible only for my content type: <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- Parent ContentType: ...
0
votes
1answer
244 views

Sequential workflow running twice sharepoint 2007

I inherited a site with a sequential workflow (created in Visual Studio 2008). The workflow is attached to a content type and is set to run only on item created. Recently, I attached three declarative ...
2
votes
2answers
517 views

How to determine item ContentType in FormControl (FieldIterator for instance)?

I've implemented my ListFieldIterator to change the way field controls rendered. I'd like to change the behaviour of form depending on the item content type, but any attempts to determine ...
4
votes
4answers
3k 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 ...
0
votes
3answers
5k views

Add field to List Content Type using Powershell

I'm updating predefined content types with 2 new field, but I have to set the ContentType.Update(false,false). Which means that it will not propagate the changes to the list content type (instances ...
0
votes
3answers
514 views

New column added to content type - not appearing on an item of that type

As title says, I have added a Site Column to an extisting Site Content Type. When looking at an item (it happens to be a page) that is of that content type, I can't see the new field. By 'looking at', ...
0
votes
1answer
46 views

Should i use content types, if i develop a solution for SP with Visual Studio?

I'm a little bit confused about the question. Currently we are using site columns (which make perfectly sense for me) and content types and lists which are using that content types. As i see it ...
2
votes
1answer
277 views

rootFolder.ContentTypeOrder throws unexpected error for sandbox solution

I'm trying to add content types into a library list, in order to make "Visible on New" option ticked. Firstly I enabled contenttypes in the library, then I want to do this: SPFolder rootFolder = ...
2
votes
2answers
493 views

A change to the 'required' value of a site column not reflected in content type

As title suggests, I had a site column defined in the xml of a content type. The site column was required. I have just changed the definition of this field (it is not defined anywhere else in the ...
1
vote
2answers
360 views

Matching value from single line of text column to lookup column

I have a library containing a large amount of items. The library contains a column of type 'Single line of text' with a code in it. The code was taken from an external system and entered manually. ...
0
votes
1answer
413 views

Can I change a custom SPContentType's display name?

I created a SPContentType of my own. In the Sharepoint Site Settings I see all the default content types with names in my language (polish). How can I change display names for my own content types? ...
3
votes
1answer
590 views

Removing Workflow Association on Content type programmatically with push to children

I am required to remove Workflow associations on a content type and from all the child content types deriving from this, as well as the list content types, deriving from the derived. ct - A Site ...
3
votes
2answers
3k views

How to get default content type of list programmatically

How can I get default content type of sharepoint list programmatically?
2
votes
0answers
122 views

How can I create a Enterprise Wiki pagelayout with a repeating content type?

So this is the situation: my customer wants to have a web service catalog in an Enterprise Wiki. Per service we need to store fields like: - service name - description - goal - status - version ...
2
votes
1answer
118 views

How to activate content type on specific web?

I have site collection ex: http://microsoft.com/ and i got few child webs: http://microsoft.com/news/ http://microsoft.com/somethingelse/ <Elements ...
3
votes
1answer
134 views

SharePoint 2010 Workflow Deployemnet from DEV to UAT

I have Sharepoint 2010 DEV and UAT sites. I have made some changes in DEV workflow and I want to deploy the changed workflow to UAT site. I have created the workflow template and saved .wsp file to ...
1
vote
1answer
522 views

Add column to a Content Type which is associated content type of Page Layout, PL not updated

All I do below is with Visual Studio 2010. I cannot use Sharepoint Designer because I don't have the right to do it. I have a Content Type, which is the associated content type of a page layout. They ...
3
votes
3answers
115 views

Is a ContentType worthwhile/necessary in this situation?

I'm creating a custom List Definition. I've previously been told that I should create a ContentType, and a ListDefinition from that. But this seems to mean a lot of duplication in my project files. So ...
2
votes
1answer
137 views

Help Return Lists With With No List Items

This is my first time posting and I'm looking for some help, so hopefully someone has an answer. I used the search, but didn't find anything. I created a custom list definition, and content type ...
2
votes
1answer
212 views

Loading NewForm based on Content Type

I am using the Training Fab 40 template to build a training site in MOSS 2007. I have another content type for my Course list. I want to load the NewForm.aspx based on Content Type selected. The two ...
4
votes
3answers
521 views

Add new Content Type to Multiple Document Libraries in SharePoint online(Office 365)

I have one Sample Document Library on SharePoint Online (office 365). this Library has 5 different document content type. And using this Library as a template i have created 300 new Document Libraries ...
2
votes
1answer
2k views

How to associate a list workflow to list-specific (not site) content type

I am trying to make a workflow for a specific list content type. Unfortunately, there seems to be no option to do so. I can create a list workflow in SP Designer but can't find an option to associate ...
2
votes
1answer
845 views

How to rename a Content Type associated to a List

I'm tring to change the content type name of a specified List. I have a Content Type called (for example) ExampleCT that I change from Site Settings in "Example CT" pushing down changes to childer. ...
1
vote
1answer
1k views

Set Enforce Unique Values for Title Field in Custom List Definition

I have custom content type, custom list definition from this content type, and list instance in my visual studio project. I could not set Enforce Unique Values for Title Field. How can i achieve this. ...
1
vote
0answers
102 views

SP2010: Value of the 'Title' field is not stored when saving from pagelayout

I've created a pagelayout associated with a specific content type that contains the standard Title field. In my aspx file, I have an EditModePanel with attribute PageDisplayMode set to Edit, and ...
2
votes
2answers
508 views

How to use one page layout for few content types

I have elements.xml with module: <Elements> <Module Name="IntranetNewsPageLayout" Url="_catalogs/masterpage"> <File Path="IntranetNewsPageLayout\IntranetNewsPageLayout.aspx" ...
8
votes
4answers
6k 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 ...
3
votes
1answer
107 views

Hide SPContenType in use

I'm trying to hide (or remove it from the new button drop) a SPContentType that is already in use via Powershell scripting. Even if before: $SPContentType.Hidden = $true $SPContentType.Update() I ...
2
votes
1answer
1k views

Event Receivers not added when installing wsp

I have a set of event receivers for a SharePoint 2010 content type and Library. Previously, these would install and automatically be activated when I ran a script to install the wsp solution. I dug ...
3
votes
1answer
55 views

Workflow and Page Content Types

In 2007 I am trying to understand the use of workflows added to page based content types that will eventually live in a page library. If I add a workflow to such a content type then use that content ...
1
vote
1answer
140 views

Customactions not binding to content type

Facing a strange and frustrating issue just before Christmas :-( Heres the scenario: I've got a custom content type, list schema , the whole works all exported from another site using the Sharepoint ...
1
vote
0answers
394 views

Modify “Edit this Task” Outlook button for SharePoint 2010 workflow task custom content type

I have created a custom content type based off of workflow task content type by following along with this article http://fmuntean.wordpress.com/2009/11/27/infopath-task-forms-made-easy-part-2/ ...
2
votes
1answer
217 views

ContentTypes and Site Columns via Visual Studio / CAML Query Updates broken

I've been using CAML queries to do list updates for quite some time, but recently they've stopped working, and I have no idea why. Even an extremely simple query seems to be failing. For example the ...
0
votes
2answers
1k views

Error “duplicate field name” while adding content type programmatically

Judging by the stack trace, one of the following lines of code is giving me an error: private void AddcontentTypesToDocumentLibrary(SPWeb web, SPList list) { SPSite site = ...
2
votes
4answers
3k 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 ...
0
votes
1answer
2k views

Problem with save conflict when adding content type to list

I have a feature receiver with the following code: public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPSite site = (SPSite)properties.Feature.Parent; ...
1
vote
1answer
362 views

Adding a content type to a list gives me a duplicate field error

I have the following code: list.ContentTypes.Add(contentType); It works on my dev environment, but on test fails with the following error: A duplicate field name "[GUID]" was found. I've had ...
0
votes
1answer
392 views

Error While Creating Site Collection

I am creating Site Collection with Team Site Template. When I tried to create it shows me error that The parent content type specified by content type identifier 0x0101 does not exist. Note : ...
0
votes
1answer
385 views

How to Create a View of a Particular Content Type when there are Mulitple Content Types?

Salvete! I have a forms-library with two content-types that appear in the "New Document" menu. How can I create a view and choose which content-type to use? Let me explain. I have two ...
4
votes
1answer
7k 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 ...
1
vote
2answers
363 views

What are the Differences between These Content-type Properties?

In my portal, I have created a few infopath forms, and promoted properties in them. When I view the content-types in the site-collection's content-type library, I see that some of the fields are in ...
2
votes
1answer
318 views

Add content type from sandboxed solution to list definition (farm solution) does not work

I'm using a sandboxed solution from a 3rd party vendor which contains some site columns and a site content type. I want to add this content type to my document library definition in CAML. But when I ...
1
vote
2answers
192 views

How can I create a subfolder in a documentset of a custom contenttype?

I have a custom contenttype which inherits from documentset. Further for the custom contenttype exists a custom docsethomepage.aspx (WelcomePage). Now the problem is, if I create a subfolder ...
0
votes
1answer
635 views

Sharepoint how to add field to list where field with such name already exists?

I have sharepoint list 'Events' with field Location. I am trying to add from web existing field with same internal name from other package. var fields = contentType.ParentWeb.Fields; SPField ...
0
votes
2answers
1k views

Error occurred in deployment step 'Activate Features': Invalid field name

SharePoint Error message Error occurred in deployment step 'Activate Features': Invalid field name.{guid}
2
votes
2answers
223 views

All columns getting added to Document content type in migrated site

I migrated a SPS 2003 site collection to MOSS 2007 using database migration. There are already some document libraries in the SPWebs of the site collection. Some of the libraries are just the standard ...
0
votes
1answer
39 views

Number field on custom content type working inconsistently amongst items

In a document library, I've included a field of type 'Number' in my custom content type. At a particular point in my solution I increment this field by 1. On certain items it will work, on certain ...
1
vote
2answers
92 views

Use media content types on a publishing page

I'm trying to make a new publishing page that can use either Images, Video or Audio. I'we already made one that uses the PublishingWebControls:RichImageField but cant find equivalents for video and ...
1
vote
1answer
1k views

Bind custom content type to Pages library

I have developed a custom content type and a custom page layout that is inheritted, in visual studio for my publishing site. I am setting the default page layout of the site programmatically, in event ...
2
votes
1answer
1k views

Parent content type Page or Page Layout?

When to develop custom page layout via Visual Studio, which parent content type must be chosen for content type? From different articles i see both Page and Page Layout selected as base Content type. ...