invisible quick launch in NewForm.aspx in sharepoint 2010
Hi
I want when user browse NewForm.aspx in sharepoint list, cant see quick launch. In sharepoint 2007 in NewForm.aspx, quick launch could not be seen, but in NewForm.aspx in sharepoint 2010, quick launch appear in right of NewForm.aspx
page. How I can invisible quick launch in NewForm.aspx? except use "&RootFolder=&isdlg=1" in end of NewForm.aspx URL.
thanks.
September 26th, 2012 11:32am
Hi luckstar,
Here are some solutions for you.
- Open the NewForm in modal popup window by enable the option: List Settings > Advanced Settings > Launch forms in a dialog.
- Open the NewForm.aspx page in advanced mode in SharePoint Designer, remove following code directly.
<Sharepoint:SPNavigationManager
id="QuickLaunchNavigationManager"
runat="server"
QuickLaunchControlId="QuickLaunchMenu"
ContainedControl="QuickLaunch"
EnableViewState="false"
CssClass="ms-quicklaunch-navmgr"
>
<div>
<SharePoint:DelegateControl runat="server"
ControlId="QuickLaunchDataSource">
<Template_Controls>
<asp:SiteMapDataSource
SiteMapProvider="SPNavigationProvider"
ShowStartingNode="False"
id="QuickLaunchSiteMap"
StartingNodeUrl="sid:1025"
runat="server"
/>
</Template_Controls>
</SharePoint:DelegateControl>
<SharePoint:UIVersionedContent UIVersion="3" runat="server">
<ContentTemplate>
<SharePoint:AspMenu
id="QuickLaunchMenu"
runat="server"
DataSourceId="QuickLaunchSiteMap"
Orientation="Vertical"
StaticDisplayLevels="2"
ItemWrap="true"
MaximumDynamicDisplayLevels="0"
StaticSubMenuIndent="0"
SkipLinkText=""
CssClass="s4-die"
>
<LevelMenuItemStyles>
<asp:MenuItemStyle CssClass="ms-navheader"/>
<asp:MenuItemStyle CssClass="ms-navitem"/>
</LevelMenuItemStyles>
<LevelSubMenuStyles>
<asp:SubMenuStyle CssClass="ms-navSubMenu1"/>
<asp:SubMenuStyle CssClass="ms-navSubMenu2"/>
</LevelSubMenuStyles>
<LevelSelectedStyles>
<asp:MenuItemStyle CssClass="ms-selectednavheader"/>
<asp:MenuItemStyle CssClass="ms-selectednav"/>
</LevelSelectedStyles>
</SharePoint:AspMenu>
</ContentTemplate>
</SharePoint:UIVersionedContent>
<SharePoint:UIVersionedContent UIVersion="4" runat="server">
<ContentTemplate>
<SharePoint:AspMenu
id="V4QuickLaunchMenu"
runat="server"
EnableViewState="false"
DataSourceId="QuickLaunchSiteMap"
UseSimpleRendering="true"
Orientation="Vertical"
StaticDisplayLevels="2"
MaximumDynamicDisplayLevels="0"
SkipLinkText=""
CssClass="s4-ql" />
</ContentTemplate>
</SharePoint:UIVersionedContent>
</div>
</Sharepoint:SPNavigationManager>
- Create a new master page by copying the v4.master, and remove the quick launch control from left content place holder. Then go to NewForm page, attach it to your new master page by clicking Styles tab on the SharePoint Designer ribbon > Attach.
Thanks & Regards,
Emir
September 27th, 2012 10:01am
Hi Emir,
Thanks for your help. Actually create new master page and attach to New Form should be done by end users and its difficult for them. I look up for solution that I can implement
it once, then user can use it and dont see quick launch in right of NewForm.aspx such as NewForm.aspx in sharepoint 2007.
Can you give me solution about this?
October 3rd, 2012 10:18am
Add below Javascript code using SharePoint Designer 2010 or using Content Editor Web part.
document.getElementById('s4-leftpanel').style.display="none";
October 24th, 2012 6:12am
Add below Javascript code using SharePoint Designer 2010 or using Content Editor Web part.
document.getElementById('s4-leftpanel').style.display="none&
March 21st, 2013 7:19am
Where do you put the CEWP to make this work?
August 24th, 2015 12:46pm
Hi Ky-Zen
actually you can put CEWP with below code as a web part everywhere you want to hide Quick Launch. I put CEWP in a newform.aspx and add put below code on it to hide quick launch:
<style type="text/css">
#s4-leftpanel {
display:none; }
.s4-ca {
margin-Right:0px; }
</style>
Thanks & Regards.
-
Edited by
luckstar
4 hours 2 minutes ago
August 24th, 2015 11:37pm