
Anonymous
Hi John,
The goal here is to replace OOB Quick Launch web part with one of the QA's menu web parts.
Please backup your master page before doing any manual modifications.
This is how I do it step by step:
– create a page, create a menu list and drop a qCascadingMenu or a qPanelMenu on it
– complete the configuration of the above web part (including the skin lists, etc)
– open the page using SP Designer and copy the xml text. It looks like this (please note that I cut off some text here)
<Navigation:PanelMenu webpart="true" runat="server" __webpartid="{22DA81BD-25E4-4D60-AFE2-C4B862D1DB8C}">
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title />
<FrameType>None</FrameType>
<Description>Panel Menu webpart</Description>
<IsIncluded>true</IsIncluded>
<ZoneID>FullPage</ZoneID>
….
– use SP Designer and open the master page (SP2010 v4.master, SP2013 seattle.master)
– at the top of the page add the following :
<%@ Register TagPrefix="Navigation" Namespace="WA.Navigation" Assembly="WA.Navigation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2b4b09f1c57c8f0b"%>
The header would look similar to this
<%@Master language="C#"%>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.SharePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="Welcome" src="~/_controltemplates/15/Welcome.ascx" %>
<%@ Register TagPrefix="Navigation" Namespace="WA.Navigation" Assembly="WA.Navigation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=2b4b09f1c57c8f0b"%>
– localize the following control (text)
SharePoint:SPNavigationManager
and add Visible="false"
– copy the xml text that we saved in the first steps and paste it after the SPNavigationManager (see above)
– save the master page
-refresh the page
If you see that the page doesn't render correctly or you get any errors then restore from your backup copy and do it in baby steps saving after each operation and rendering the page after each step.
If is still not clear please let me know.
I'd suggest you to try in a non Production env. until you have it working.