Answered by:
Edit button on ribbon not working in sharepoint 2010 custom master page

Question
-
Hey,I have created a custom master page using sharepoint 2010 designer,It was built using minimal.master (not _starter.master) as the base master page.
The master page works fine except for the edit button on the ribbon,An error message "pub is not defined" URI: http://"MysiteName/_layouts/sp.ribbon.debug.js?rev=lc6eCMZP6gL5LnuSYh0S6Q%3D%3D is displayed on the status bar every time i try to edit the page using the edit button on the ribbon.But i am able to edit the page using site actions->Edit page.
Could anyone please suggest a possible solution.Also creating the master page from scratch is ruled out in my case.
Thursday, August 19, 2010 11:31 AM
Answers
-
Ya i did that and the master page is working fine now.
Thanks
I found the reason why the edit button was not working,It was beacause the control below was misplaced
<asp:ContentPlaceHolder ID="SPNavigation" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="PublishingConsole">
</SharePoint:DelegateControl>
</asp:ContentPlaceHolder>
- Marked as answer by Ganesh.M Tuesday, August 31, 2010 9:41 AM
Thursday, August 26, 2010 7:42 AM -
I'd try using the starter master page instead. It would be a lot more effort to try to make minimal.master do what you want and the starter master page will likely resolve your issue.
John Ross
SharePoint Server MVP | Sr. Consultant SharePoint911: SharePoint Consulting
Blog: http://www.sharepoint911.com/blogs/john
Twitter: @JohnRossJr
Professional SharePoint 2010 Branding and User Interface Design- Proposed as answer by John D. Ross Thursday, August 26, 2010 2:26 PM
- Marked as answer by Ganesh.M Friday, August 27, 2010 10:33 AM
Tuesday, August 24, 2010 11:46 AM
All replies
-
Was there a specific reason why you started with minimal.master? I generally recommend using a starter master page as descibed here:
http://blog.drisgill.com/2009/11/starter-master-pages-for-sharepoint.html
Minimal.master is so minimal :-)
John Ross
SharePoint Server MVP | Sr. Consultant SharePoint911: SharePoint Consulting
Blog: http://www.sharepoint911.com/blogs/john
Twitter: @JohnRossJr
Professional SharePoint 2010 Branding and User Interface DesignThursday, August 19, 2010 10:16 PM -
Hey,
Sorry to for replying so late,I was on a vacation.
The reason that i started with minimal is because i was not aware of the existence of the starter master page.I am a fresher to sharepoint,I am training to become a sharepoint developer.
Tuesday, August 24, 2010 10:01 AM -
I'd try using the starter master page instead. It would be a lot more effort to try to make minimal.master do what you want and the starter master page will likely resolve your issue.
John Ross
SharePoint Server MVP | Sr. Consultant SharePoint911: SharePoint Consulting
Blog: http://www.sharepoint911.com/blogs/john
Twitter: @JohnRossJr
Professional SharePoint 2010 Branding and User Interface Design- Proposed as answer by John D. Ross Thursday, August 26, 2010 2:26 PM
- Marked as answer by Ganesh.M Friday, August 27, 2010 10:33 AM
Tuesday, August 24, 2010 11:46 AM -
Ya i did that and the master page is working fine now.
Thanks
I found the reason why the edit button was not working,It was beacause the control below was misplaced
<asp:ContentPlaceHolder ID="SPNavigation" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="PublishingConsole">
</SharePoint:DelegateControl>
</asp:ContentPlaceHolder>
- Marked as answer by Ganesh.M Tuesday, August 31, 2010 9:41 AM
Thursday, August 26, 2010 7:42 AM