Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

In a content type, I override the forms of the CT :

<XmlDocuments>
    <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
        <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
            <Display>/_layouts/mycorp/mycustomdform.aspx</Display>
            <Edit>/_layouts/mycorp/mycustomdform.aspx</Edit>
            <New>/_layouts/mycorp/mycustomdform.aspx</New>
        </FormUrls>
    </XmlDocument>
</XmlDocuments>

it works as expected, but as soon as I defines these forms, I can't create more forms for a list with this content type; for instance, I have a list definition (with this content type) that have :

    <Forms>
        <Form Type="DisplayForm"
              Url="DispForm.aspx"
              SetupPath="pages\form.aspx"
              WebPartZoneID="Main" />
        <Form Type="EditForm"
              Url="EditForm.aspx"
              SetupPath="pages\form.aspx"
              WebPartZoneID="Main" />
        <Form Type="NewForm"
              Url="NewForm.aspx"
              SetupPath="pages\form.aspx"
              WebPartZoneID="Main" />
        <Form Type="DisplayForm"
              Url="DispForm2.aspx"
              SetupPath="pages\form.aspx"
              WebPartZoneID="Main" />
        <Form Type="EditForm"
              Url="EditForm2.aspx"
              SetupPath="pages\form.aspx"
              WebPartZoneID="Main" />
        <Form Type="NewForm"
              Url="NewForm2.aspx"
              SetupPath="pages\form.aspx"
              WebPartZoneID="Main" />
    </Forms>

The pages are provisioned, but whether I try to access to newform.aspx or newform2.aspx, I'm redirected to the custom form.

What is the correct way to defines a custom default form url for a content type, but having the possibility to have other view of the item ?

share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.