Content Type Column Removal

dmce
  • Content Type Column Removal dmce

    I have a few Content Types that inherit from a base Content Type. These are all wrapped up as part of my solution.

    I wondered, as it is possible to add additional columns to a child Content Type using FieldRefs, is it possible to remove a column for the child Content Type that is specified in the parent Content Type?

    It can be done on the front-end but I wondered if I could do it as part of my deployment?

  • You could certainly use a Feature Receiver to hide the Field (FieldRef) on your child Content Type.

    It may be possible to put a FieldRef in the definition of the inheriting Content Type with the same ID as the field ref in the parent and set it to Hidden=True, but I have no idea if this works it's just speculation.

    The Feature Receiver will definitely work (assuming you code it right!)

Tags
content-type site-column
Related questions and answers
  • I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I am using Insert Data View function from SharePoint Designer 2007 to insert a list created in parent site to a child site. Now the list displays correctly. My question is, how to hide the column name (displayed at the top of list content rows) in my child site (I want to show the list rows only, no need to show the list column name)?

  • Is it possible to use the Content Query web part to filter on multiple specific content types that do not have a parent/child relationship? I have a requirement to show Events (from a calendar) and Announcements (from an Announcement list) aggregated in the same area but as these come from two different branches in the content type tree, I can't do this via configuration of the web part. Would I be able to do this with a custom CAML query after exporting/re-importing the web part xml? Also I noticed the following two XML clauses in the webpart.xml file: <property name="ContentTypeName

  • its parent content type when it is created. If Inherits is TRUE, the child content type inherits all fields that are in the parent, including fields that users have added. If Inherits is FALSE or absent and the parent content type is a built-in type, the child content type inherits only the fields that were in the parent content type when SharePoint Foundation was installed. The child content type does not have any fields that users have added to the parent content type. I'm finding that whenever Inherits=FALSE the content type is deployed internally

  • I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise, and I am using publishing portal template. I have created a list in top level site. And I want to use the list in a child site (e.g. adding the list to a page in child site by using Page --> Add Web Parts --> Browse), but can not find the list created in parent site in this way. Any ideas how to use the list (created in parent site) in a child site? BTW: I can use the list (created in parent site) in parent site without any issues.

  • I have a working document library that uses a template content type, which is an InfoPath form. I have enabled the browser compatibility settings and the "view form in browser" option in the document library settings. With these settings, I can get to the normal browser-based form by clicking New. This opens a new window with the form between two gray bars with buttons on them. I'm interested in embedding this form in a SharePoint page, preferably without the gray bars so the only submit option is my button. Is this possible? I'm thinking that it may be possible to embed it in a web part

  • . Scoped to Site. Registration: contains a ListTemplate and a ListInstance that just modifies a basic Custom List to enable content types and add my custom content type. Scoped to Web. Here's what's happening. When I activate ContentTypes, the content type and field are deployed as expected into my site collection. When I activate Registration, the list is provisioned and the content type is added as expected. When I try to add a new item to the list, the list form only shows the Title field from Item. Now, here's the weird part. If I add a second content type to the list (through the UI

  • 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) I'm currently creating some Content Types in Visual Studio using Elements.xml and just wonder if I'm "polluting" site columns with fields that are only useful on that content type.

  • My company is currently in the process of building a CMS on top of SharePoint 2010. Part of the functionality of the CMS will require being able to have a searchbox that searches the contents of a specific list (both custom lists and external content list types) and returns the list items relevant to the search as the results. My questions are: Is it possible to build a search Webpart that only searches a specific list? Is is possible to have an external content list sitting on top of a database table via BCS searchable through SharePoint Search Services? Any constructive input

  • ); Update: I've built a C# console app which creates all lists / lookup columns / content types and add the lookup column to corresponding content type. Result: same thing, same magic number 13. Anyone...So I did create on an SPWeb 20 custom lists and then a tasks list. For each of those 20 lists I've created 20 site lookup columns. I then created 20 Content Types based on Task content type. Then I've added each content type to the Tasks list. After that I've added each lookup site column to the corresponding list content type. So far so good. I've built a custom WebPart that displays task items

Data information