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 description is replaced by some default description.
BUT if I get description by powershell, it is ok - my custom description.
What is wrong here? I want to see my custom description in UI.
I tried this on two different computers/sharepoints and both with same result.
Here is some code if you want.
Content type definition is the default one, from Visual Studio 2010 ContentType template:
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <!-- Parent ContentType: Položka (0x01) --> <ContentType ID="0x010000daa0d599fb4c4bbf60a844cf20c354" Name="CTwDescription - ContentType1" Group="Custom Content Types" Description="My Content Type" Inherits="TRUE" Version="0"> <FieldRefs> </FieldRefs> </ContentType> </Elements>
Powershell code to get the right description:
$w = Get-SPWeb http://localhost $ct = $w.ContnetTypes["CTwDescription - ContentType1"] $w.Description