title: Sharepoint 2010 - Can I set a custom form to a content type that is not deployed to _layouts?
body: <p>Background:</p>
  
  <p>I have a site that I deploy my content type too and this site has many sub-sites. The content type will be used by each sub-site.   </p>
  
  <p>I have a module that I want to push custom New/Edit/Display forms (Web part pages) when my feature is deployed and activated. </p>
  
  <p>I want to set these forms to the content type directly (FormUrls), but I do not know how or where I should deploy my forms so that I can reference them correctly. </p>
  
  <p>I know how to do this with _layouts and I also know how to use the list definition schema (setup path), but I cannot use either of these due to version requirements (We try to avoid _layouts when possible). We are required to maintain the list and form history at the time it was created. When a new version of the list/form is released, the new content type will inherit the previous and the new form will be set to the new content type. </p>
  
  <p>We also cannot use Infopath (Licensing issues). </p>
  
  <p>I have tried deploying the forms using a module to the Url of the content type (_cts/Content Type Name), but I cannot seem to get the content type path correct. Here is an simple example (I cannot give the actual code or I would, sorry). </p>
  
  <p>Module</p>
  
  <pre><code>&lt;Module Name="Module1" Url="_cts/Content Type" RootWebOnly="FALSE"&gt;
    &lt;File Path="Module1\MyNewForm.aspx" Url="Module1/MyNewForm.aspx" /&gt;
  &lt;/Module&gt;
  </code></pre>
  
  <p>Content Type</p>
  
  <pre><code>&lt;FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"&gt;
        &lt;New&gt;Module1/MyNewForm.aspx&lt;/New&gt;
  &lt;/FormUrls&gt;
  </code></pre>
  
  <p>The above example does not work and I've tried removing the Module -> Url attribute so it is deployed at the root and that also did not help. Any help on this would be greatly appreciated. </p>