Hiding built-in field in "Edit Properties" form trough Content Type definition xml file
We need to hide some of the built-in field of our Pages in the开发者_Go百科 "Edit Properties" form.
I tried to hide the fields in the content type file using Hidden="TRUE"
, ShowInDisplayForm="FALSE"
etc, but it does not seem to work.
Also, we have a content type hierarchy, so the fields would be "hidden" in our main content type that all concrete content types inherit from.
I would like to avoid having to create some edit form for each of our content type, if possible, so something generic and hierarchical would be perfect.
You mention ShowInDisplayForm, but have you tried ShowInEditForm?
I've never tried ShowInEditForm in a Content Type, although it appears to be supported. Whenever I have used ShowInEditForm, it has been with the Field definition, the List Template schema.xml, or both. But it has always worked as expected. The field is removed from the Edit Form.
As far as Content Type inheritance, the property value should persist as long as no other child Content Type or List Template overrides your setting.
To remove the Content-Type from the EditForm, you have to follow another procedure that is described here: http://blogs.msdn.com/b/dmp/archive/2009/01/26/how-to-hide-content-type-choice-control-in-edit-forms.aspx
精彩评论