Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
0 like 0 dislike
899 views
in Project Server - EPM by 11 11 18
edited by

I am using visual studio to create a custom content type. On the project site, I added the content type to the task list and unchecked all other content types,  when I edit the task item I want to open a custom page but not working.

I test the content type in the sharepoint site collection not "project server site collection"  it is working properly, so I want to know what I missing ??

the content type code as below :

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <!-- Parent ContentType: Workflow Task (SharePoint 2013) (0x0108003365C4474CAE8C42BCE396314E88E51F) -->
  <ContentType ID="0x0108003365C4474CAE8C42BCE396314E88E51F000D78E6BAB56647FFAA187FE0FC6566E5" Name="ct_customform" Group="custom group" Description="custom content type" Inherits="TRUE" Version="0">
    <FieldRefs></FieldRefs>

      <XmlDocuments>
          <XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
              <FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
                 
                  <Edit>pages/customform.aspx</Edit>
                
              </FormUrls>
          </XmlDocument>
      </XmlDocuments>
      
  </ContentType>
</Elements>

 

by
0 0
Thanks for posting this issue, I have faced the same today and your answer helped me

1 Answer

0 like 0 dislike
by 11 11 18
edited by

I fixed this issue by doing the following:

  • Change inherits="false" instead of "true".
  • Also create your own custom Tasklist, and don't use the default Task list or the workflow tasks list in Project Site

Custom Content type with edit page in Project Server 2016

If you don’t ask, the answer is always NO!
...