Solution: http://kitmenke.com/blog/2010/12/11/customizing-editform-aspx-in-a-publishing-site/
SPD open this list
Right-click editform. aspx and choose "create from existing webpage"
Add a yellow part to the new webpage
<Asp: Content contentplaceholderid = "placeholderleftnavbar" runat = "server"/>
<Asp: Content contentplaceholderid = "spnavigation" runat = "server"/>
<Asp: Content contentplaceholderid = "placeholdermain" runat = "server">
Save the page to the current location
Right-click the attribute on the list in SPD, and change the folder and item Edit to the new aspx in "support files ".
After recently doing a lot of work heavily customizing newform. aspx and editform. aspx for a Sharepoint list, I ran into a major issue after I moved my list into a publishing site. the issue appeared when I added a webpart onto my editform.
As soon as another webpart was added, the entire page switched into some sort of weird publishing mode.
This new mode has a couple of changes to the form:
- A publishing toolbar now appears at the top
- Every field in the list view Web part has an additional "form" label
- Additional Javascript is added to the page that prompts the user to save whenever an attempts to navigate somewhere differently: to save your changes before continuing, click "OK ". to continue without saving changes, click "cancel ".
In my case, this new mode definitely wocould not work for what I was trying to do. the labels increase the size of the form dramatically, the publishing toolbar makes it seem as if you are editing the page rather than a list item, and this new mode does not appear on newform. aspx which means the forms are dramatically inconsistent.
After Googling, I found a couple of people who have had similar issues. the root cause seems to be the Office Sharepoint Server publishing site feature. since disabling the feature on the site was not an option, I had to find another way. javaScript and CSS was a viable option (since I'm mizmizing the form using these anyway) but I felt like I needed a more bullet proof method.
My method involves using SharePoint designer to mimize editform. aspx .(Updated January 13th, 2011 after Ade's comment below. Thanks a lot !)
Step 1:Create a new custom editform. aspx by Right clicking on editform. aspx, click "New from existing page"
Step 2:Add the spnavigation line in right before placeholder main:
<Asp: Content contentplaceholderid = "placeholderleftnavbar" runat = "server"/>
<Asp: Content contentplaceholderid = "spnavigation" runat = "server"/>
<Asp: Content contentplaceholderid = "placeholdermain" runat = "server">
Step 3:Save your new customedit. aspx into the same directory as editform. aspx
Step 4:Verify your list now is associated with your new customedit. aspx by Right clicking on the list in SharePoint designer and clicking "properties ".
Your new edit form shocould be listed under the supporting files tab for edit item form: