This is what I *want* to do, but am not sure of best practices, etc:
I create and deploy my lists from Visual Studio. I now want to modify the default dispForm for the list. Open Sharepoint Designer, make all of the desired changes in my display form (eg link to another list and display related items). Now I want to get that
form into Visual Studio so that I can deploy it as part of my solution.
Tried viewing generated code in Sharepoint Designer, and bringing it in to the schema.xml of my list, in the <form> section, wrapped in CDATA - that didn't go.
Tried saving my entire site (with custom form) as a package, saved .wsp, renamed to .cab, opened, grabbed modules/elements.xml and opened. Pulled out the custom form section (<File Url="myForm.aspx">...</File>) and added it into a module under
my list instance. Referenced it from the <forms> section of schema. Like:
View Complete Post