I have a content type which is getting deployed through a wsp package. The elements.xml
of it is
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<!-- Parent ContentType: Page (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) -->
<ContentType ID="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" Name="My ContentType"
Group="Content Types"
Description="Content type"
Inherits="FALSE"
Version="0">
<FieldRefs>
<FieldRef ID="{xxxxxxxxxx}" DisplayName="Col 1" Required="FALSE" Name="Col1" />
</FieldRefs>
</ContentType>
</Elements>
So if you notice the xml contains Inherits="FALSE"
,
I need a PowerShell script which will set Inherits
to TRUE
.