다음을 통해 공유


Resolution: MOSS: Custom document library doesn't display metadata with more than one content type

Behavior/Symptoms:

If you add more than one content type to a custom (programmatically created) document library, the metadata is not displayed in the Web Properties pop up box at the time of saving the document.

Cause:

After comparing schema.xml before applying SP1 to another schema.xml file after applying SP1, following lines of code was missing:

</ScriptQuote>
<HTML>
);
_tp_ctfld.fShowInNewForm = BoolFromString2(
</HTML>
<ScriptQuote>
<Property Select="ShowInNewForm" />
</ScriptQuote>
<HTML>
, true);
_tp_ctfld.fShowInEditForm = BoolFromString2(
</HTML>
<ScriptQuote>
<Property Select="ShowInEditForm" />
</ScriptQuote>
<HTML>
, true);
_tp_ctfld.fReadOnly = BoolFromString(
</HTML>
<ScriptQuote>
<Property Select="ReadOnly" />

Resolution:

Take OOB document library's schema.xml for reference and do modifications accordingly in your custom schema.xml. After incorporating above snippet, everything will work fine.