Works a treat on those two fields.

Nothing I try has any effect on the Workspace field though. Will continue to 
hide with JavaScript.

From: ozmoss-boun...@ozmoss.com [mailto:ozmoss-boun...@ozmoss.com] On Behalf Of 
Dan Sheedy
Sent: Thursday, 2 June 2011 2:38 PM
To: ozMOSS
Subject: Re: Remove fields from inherited content type

Glad to have helped Paul.
On Thu, Jun 2, 2011 at 1:18 PM, Paul Noone 
<paul.no...@ceosyd.catholic.edu.au<mailto:paul.no...@ceosyd.catholic.edu.au>> 
wrote:
Sweet. Thanks Dan. I thought that was only for modifying fields for previously 
deployed content types.

I'll give it a go.

Regards,

Paul

--
Online Developer/SharePoint Administrator,
ICT Infrastructure Team
CEO Sydney

From: ozmoss-boun...@ozmoss.com<mailto:ozmoss-boun...@ozmoss.com> 
[mailto:ozmoss-boun...@ozmoss.com<mailto:ozmoss-boun...@ozmoss.com>] On Behalf 
Of Dan Sheedy
Sent: Thursday, 2 June 2011 1:15 PM
To: ozMOSS
Subject: Re: Remove fields from inherited content type

You can in your element manifest for the content type with the 
<RemoveFieldRef....

<?xml version="1.0" encoding="utf-8" ?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/";>

   <ContentType

      ID="0x0100C5647A362F236548B218C15302286758<tel:15302286758>"

      Name="My Content Type"

      Description="Simple Custom Content Type"

      ReadOnly="FALSE"

      Hidden="FALSE"

      Sealed="FALSE"

      FeatureId="5DFD12AF-D0AA-4c63-8FB8-C49DB1191083"

      Group="Custom Content Types">

      <FieldRefs>

         <RemoveFieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}"




                         Name="Title"/>

         <FieldRef ID="{b402db15-ee44-4ec4-89e3-23e10a8fc64c}"




                   Name="My_x0200_Field" />

         <FieldRef ID="{538c71e4-8650-4ce7-b021-920effa66346}"




                   Name="Status" />

      </FieldRefs>

   </ContentType>

</Elements>
From: 
http://blogit.create.pt/blogs/andrevala/archive/2008/03/27/SharePoint-2007-Deployment_3A00_-Site-Content-Type-Features.aspx.


On Thu, Jun 2, 2011 at 9:25 AM, Paul Noone 
<paul.no...@ceosyd.catholic.edu.au<mailto:paul.no...@ceosyd.catholic.edu.au>> 
wrote:
Hi all,

I've created a custom content type feature which inherits from Events.

Is there any way to remove the Location and Description/Comments field within 
the schema definition? Currently I have hidden them but I'd like to remove them 
completely. Same goes for the Calendar list instance where these appear to be 
irremovable.

Custom Event CT
[cid:image001.png@01CC2132.EE563410]

Kind regards,

Paul Noone

---------------------------------------------------
Online Developer/SharePoint Administrator
Infrastructure Team, ICT
Catholic Education Office, Sydney
p: (02) 9568 8461
f: (02) 9568 8483
e: paul.no...@ceosyd.catholic.edu.au<mailto:paul.no...@ceosyd.catholic.edu.au>
w: http://www.ceosyd.catholic.edu.au/


_______________________________________________
ozmoss mailing list
ozmoss@ozmoss.com<mailto:ozmoss@ozmoss.com>
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss


_______________________________________________
ozmoss mailing list
ozmoss@ozmoss.com<mailto:ozmoss@ozmoss.com>
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

<<inline: image001.png>>

_______________________________________________
ozmoss mailing list
ozmoss@ozmoss.com
http://prdlxvm0001.codify.net/mailman/listinfo/ozmoss

Reply via email to