Modifying the editform. ASPX page in the release site causes the toolbar to be hidden.

Source: Internet
Author: User

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:

  1. A publishing toolbar now appears at the top
  2. Every field in the list view Web part has an additional "form" label
  3. 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:

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.