I activated community feature in a site, for some reasons, the forms, i.e. category, discussion,... are not correct. Some fields are missing.
I open the site in SP designer, in the content type, I can see there is a column, which is supposed to be 'Title', has the '' in Title field.
I tried to use powershell, ... $field.Title = "Title";
but it shows exception, says: object is null, ....
Is there a way to update the field Title to 'Title'?
Since Title column is a built-in column, anyone knows what could make its Title ''?
I worked on this for several days, here is what I found: 1) It turns out that the Content Type 'Item' does not 'Show' any column. If I check content type in SP designer, then I can see there is a column (Title) in there, whose display name is blank (maybe '' or NULL) and it is hidden.
2) However, I could not figure out how to change its Display Name. So: 2.a) I added a column to 'Item'; 2.b) then go to database content type table, find the related row, I see the definition is a XML (was NULL). I can see that in the XML, 2 fields are there. One of them is the 'Title' field. So, I added property: DisplayName='Title' , then update the database directly. 2.c) Now, this field shows in SP designer with the displayname as Title.
3) now I go to the site UI, under content type, it still does not show 'Title' under column. But if I click link to adjust field order, it shows the Title column.
4) since 'Item' content type is referred by other content type, so I checked the other content type. Weird thing is: in all other content types, this 'Title' field does not show up under column, but in some of them, I can see it if I click to adjust column order, and in some other content type, even under adjusting column order, I still can't see this field.
I know I should not change data in DB directly. I did this just out of curiosity.