2012-05-14 2 views
0

Я создал тип содержимого со следующим xml, но не использует мои пользовательские формы, указанные в xml ниже. Что не так ?Тип содержимого, не использующий пользовательскую форму

<?xml version="1.0" encoding="utf-8"?> 
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> 
    <Field ID="{854DCDF4-5091-4B1E-AA31-D9DC71A29637}" 
     Type="Text" 
     Required="TRUE" 
     DisplayName="Customer ID" 
     Name="Customer-ID" 
     Indexed="TRUE" 
     EnforceUniqueValues="FALSE" /> 

    <Field ID="{7E898932-91C0-4285-A8A2-B6440BE2FDC9}" 
     Type="Text" 
     Required="FALSE" 
     DisplayName="Customer Name" 
     Name="Customer-Name" /> 

    <Field ID="{5168AB24-21A8-438A-8112-E82E24E180CE}" 
     Type="Text" 
     Required="FALSE" 
     DisplayName="Country" 
     Name="Country" /> 

    <!-- Parent ContentType: Item (0x01) --> 
    <ContentType ID="0x010081e20b9903d945a8beacde43ae09f766" 
       Name="Customer" 
       Group="Custom Content Types" 
       Description="Customer Content Type" 
       Inherits="TRUE" 
       Version="0"> 
    <FieldRefs> 
     <FieldRef ID="{854DCDF4-5091-4B1E-AA31-D9DC71A29637}" /> 
     <FieldRef ID="{7E898932-91C0-4285-A8A2-B6440BE2FDC9}" /> 
     <FieldRef ID="{5168AB24-21A8-438A-8112-E82E24E180CE}" /> 
    </FieldRefs> 
    <XmlDocuments> 
     <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"> 
     <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"> 
      <New>_layouts/customer/customer.aspx</New> 
      <Display>_layouts/customer/customerdisp.aspx</Display> 
      <Edit>_layouts/customer/customeredit.aspx</Edit> 
     </FormUrls> 
     </XmlDocument> 
    </XmlDocuments> 
    </ContentType> 
</Elements> 

ответ

2

Попробуйте Inherts = "FALSE" в качестве атрибута элемента

Смежные вопросы