SOLVED

SharePoint 2019 Publishing Site - Problem with quick launch menu

%3CLINGO-SUB%20id%3D%22lingo-sub-2870434%22%20slang%3D%22en-US%22%3ESharePoint%202019%20Publishing%20Site%20-%20Problem%20with%20quick%20launch%20menu%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2870434%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Foffice%2Fdeveloper%2Fsharepoint-2010%2Fms476607(v%3Doffice.14)%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fprevious-versions%2Foffice%2Fdeveloper%2Fsharepoint-2010%2Fms476607(v%3Doffice.14)%3C%2FA%3E%20for%20a%20public%20web%20site%20in%20SharePoint%202019%20that%20is%20showing%20quick%20launch%20navigation%20but%20with%20a%20unexpected%20behavior%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CAJAXDELTA%20id%3D%22%26quot%3BAjaxDelta1%26quot%3B%22%20class%3D%22%26quot%3B%26quot%3B%22%20role%3D%22%26quot%3Bnavigation%26quot%3B%22%20blockelement%3D%22%26quot%3Btrue%26quot%3B%22%20runat%3D%22%26quot%3Bserver%26quot%3B%22%3E%3C%2FAJAXDELTA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPNAVIGATIONMANAGER%3E%3C%2FSPNAVIGATIONMANAGER%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ID%3D%22SPNavigationManager1%22%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20runat%3D%22server%22%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20QuickLaunchControlId%3D%22V4QuickLaunchMenu%22%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ContainedControl%3D%22QuickLaunch%22%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20EnableViewState%3D%22false%22%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CDELEGATECONTROL%20id%3D%22%26quot%3BDelegateControl2%26quot%3B%22%20runat%3D%22%26quot%3Bserver%26quot%3B%22%20controlid%3D%22%26quot%3BQuickLaunchDataSource%26quot%3B%22%3E%3C%2FDELEGATECONTROL%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CTEMPLATE_CONTROLS%3E%3C%2FTEMPLATE_CONTROLS%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSITEMAPDATASOURCE%3E%3C%2FSITEMAPDATASOURCE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CASPMENU%20id%3D%22%26quot%3BQuickLaunchMenu%26quot%3B%22%20runat%3D%22%26quot%3Bserver%26quot%3B%22%20enableviewstate%3D%22%26quot%3Bfalse%26quot%3B%22%20datasourceid%3D%22%26quot%3BQuickLaunchSiteMap%26quot%3B%22%20usesimplerendering%3D%22%26quot%3Btrue%26quot%3B%22%20orientation%3D%22%26quot%3BVertical%26quot%3B%22%20adjustforshowstartingnode%3D%22%26quot%3Btrue%26quot%3B%22%20skiplinktext%3D%22%26quot%3B%26quot%3B%22%20renderingmode%3D%22%26quot%3BList%26quot%3B%22%20staticdisplaylevels%3D%22%26quot%3B1%26quot%3B%22%20maximumdynamicdisplaylevels%3D%22%26quot%3B1%26quot%3B%22%20staticsubmenuindent%3D%22%26quot%3B0%26quot%3B%22%20editable%3D%22%26quot%3Bfalse%26quot%3B%22%3E%3C%2FASPMENU%3E%3C%2FP%3E%3CP%3E%2F%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20menu%20data%20source%20is%20managed%20metadata%20that%20is%20being%20used%20for%20both%20the%20top%20menu%20and%20quick%20launch%20menu.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20top%20level%20menu%20shows%20the%201st%20and%20second%20navigation%20levels%20and%20the%20quick%20launch%20navigation%20is%20intended%20to%20show%20the%20second%20and%20third%20levels.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETop%20level%20menu%20is%20working%20fine%20but%20quick%20launch%20navigation%20is%20not%20as%20intended.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20behavior%20for%20quick%20launch%20is%3A%3C%2FP%3E%3CP%3E%26nbsp%3B-%20When%20we%20are%20in%20the%202nd%20level%20(1st%20level%20shown%20in%20the%20quick%20launch%20menu)%2C%20all%20works%20fine.%202nd%20and%203rd%20(if%20they%20exist)%20menu%20items%20are%20shown.%20When%20I%20click%20in%20the%20second%20level%2C%20all%20works%20fine.%20The%20menu%20looks%20as%20follows%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MiguelIsidoro_0-1634835793842.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319010i0634FEA0058C3480%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MiguelIsidoro_0-1634835793842.png%22%20alt%3D%22MiguelIsidoro_0-1634835793842.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20I%20click%20in%20the%203rd%20level%2C%20only%203rd%20level%20menu%20items%20are%20shown%20(NOT%20WHAT%20WE%20WANT)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22MiguelIsidoro_1-1634835793843.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319009i15A772E34A293B94%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22MiguelIsidoro_1-1634835793843.png%22%20alt%3D%22MiguelIsidoro_1-1634835793843.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt%20seems%20as%20if%20the%20menu%20is%20always%20showing%20the%20current%20level%20menu%20items%20and%20its%20children%20(if%20they%20exist).%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20in%20the%20%3CMENU%3E%20and%2For%20%3CSPNAVIGATIONMANAGER%3E%20controls%20to%20make%20the%20both%20the%20second%20level%20and%20third%20level%20be%20shown%20in%20the%20quick%20launch%20menu%20when%20the%203rd%20level%20menu%20item%20is%20selected%3F%3C%2FSPNAVIGATIONMANAGER%3E%3C%2FMENU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20already%20tried%20playing%20with%20both%20controls%20properties%20without%20success.%20It%20seems%20like%20the%20datasource%20(the%20site%20map%20provider)%20just%20returns%20the%20all%20the%20nodes%20of%20the%20same%20level%20of%20the%20selected%20node%2C%20the%20selected%20node%20itself%20and%20their%20children%20(if%20they%20exist).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3ETried%20to%20change%20in%20asp%3Amenu%2C%20the%20properties%3A%20AdjustForShowStartingNode%2C%20StaticDisplayLevels%2C%20MaximumDynamicDisplayLevels%2C%20StaticSubMenuIndent%20and%20in%20the%20SiteMapDataSource%20control%20with%20the%20ShowStartingNode%2C%20%3C%2FSPAN%3E%3CSPAN%3EStartFromCurrentNode%20and%20removing%20the%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EStartingNodeUrl%3C%2FSPAN%3E%3CSPAN%3E%20parameter.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2870434%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hi,

 

I am using https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/ms476607(v=offic... for a public web site in SharePoint 2019 that is showing quick launch navigation but with a unexpected behavior:

 

<SharePoint:AjaxDelta ID="AjaxDelta1" class="" role="navigation" BlockElement="true" runat="server">

                        <SharePoint:SPNavigationManager

                            ID="SPNavigationManager1"

                            runat="server"

                            QuickLaunchControlId="V4QuickLaunchMenu"

                            ContainedControl="QuickLaunch"

                            EnableViewState="false">

                            <SharePoint:DelegateControl ID="DelegateControl2" runat="server" ControlId="QuickLaunchDataSource">

                                <Template_Controls>

                                    <asp:SiteMapDataSource                                                                                 SiteMapProvider="SPNavigationProvider" ShowStartingNode="False" id="QuickLaunchSiteMap" StartingNodeUrl="sid:1025" runat="server" />

                                </Template_Controls>

                            </SharePoint:DelegateControl>

 

<SharePoint:AspMenu ID="QuickLaunchMenu" runat="server" EnableViewState="false" DataSourceID="QuickLaunchSiteMap" UseSimpleRendering="true" Orientation="Vertical" AdjustForShowStartingNode="true" SkipLinkText="" RenderingMode="List" StaticDisplayLevels="1" MaximumDynamicDisplayLevels="1" StaticSubMenuIndent="0" Editable="false">

/>

                        </SharePoint:SPNavigationManager>

 

                    </SharePoint:AjaxDelta>

 

The menu data source is managed metadata that is being used for both the top menu and quick launch menu.

 

The top level menu shows the 1st and second navigation levels and the quick launch navigation is intended to show the second and third levels.

 

Top level menu is working fine but quick launch navigation is not as intended.

 

The behavior for quick launch is:

 - When we are in the 2nd level (1st level shown in the quick launch menu), all works fine. 2nd and 3rd (if they exist) menu items are shown. When I click in the second level, all works fine. The menu looks as follows:

 

MiguelIsidoro_0-1634835793842.png

 

 

When I click in the 3rd level, only 3rd level menu items are shown (NOT WHAT WE WANT)

 

MiguelIsidoro_1-1634835793843.png

 

 

It seems as if the menu is always showing the current level menu items and its children (if they exist).

Is there any way in the <asp:Menu> and/or <SharePoint:SPNavigationManager> controls to make the both the second level and third level be shown in the quick launch menu when the 3rd level menu item is selected?

 

I already tried playing with both controls properties without success. It seems like the datasource (the site map provider) just returns the all the nodes of the same level of the selected node, the selected node itself and their children (if they exist).

 

Tried to change in asp:menu, the properties: AdjustForShowStartingNode, StaticDisplayLevels, MaximumDynamicDisplayLevels, StaticSubMenuIndent and in the SiteMapDataSource control with the ShowStartingNode, StartFromCurrentNode and removing the

StartingNodeUrl parameter.

 

Thanks

1 Reply
best response confirmed by Miguel Isidoro (Occasional Contributor)
Solution

Hi,

 

Problem solved.

 

Removed the ControlId="QuickLaunchDataSource" attribute from the <SharePoint:DelegateControl> and removed the "StartingNodeUrl="sid:1025" attribute from the asp:SiteMapDataSource control.

 

Other changes in bold.

 

<SharePoint:AjaxDelta ID="AjaxDelta1" class="" role="navigation" BlockElement="true" runat="server">
<SharePoint:SPNavigationManager
ID="SPNavigationManager1"
runat="server"
QuickLaunchControlId="V4QuickLaunchMenu"
ContainedControl="QuickLaunch"
EnableViewState="false">
<SharePoint:DelegateControl ID="DelegateControl2" runat="server">
<Template_Controls>
<asp:SiteMapDataSource
SiteMapProvider="CurrentNavigationTaxonomyProvider"
ID="QuickLaunchSiteMap"
runat="server"
EnableViewState="False"
ShowStartingNode="False"
StartFromCurrentNode="False"
StartingNodeOffset="1" />
</Template_Controls>
</SharePoint:DelegateControl>

<SharePoint:AspMenu
ID="QuickLaunchMenu"
runat="server"
EnableViewState="false"
DataSourceID="QuickLaunchSiteMap"
UseSimpleRendering="true"
Orientation="Vertical"
AdjustForShowStartingNode="true"
SkipLinkText=""
RenderingMode="List"
StaticDisplayLevels="3"
MaximumDynamicDisplayLevels="0"
StaticSubMenuIndent="0"
Editable="false" />
</SharePoint:SPNavigationManager>
</SharePoint:AjaxDelta>

 

Thanks

Miguel