168大数据

标题: Dropdown list in the Top Navigation bar [打印本页]

作者: Share    时间: 2015-3-4 14:54
标题: Dropdown list in the Top Navigation bar
How to realize this result: Dropdown list in the Top Navigation bar?


Resolution Steps:

1.       Use SharePoint Designer edit the site collection:




2. find below code:

<SharePoint:AspMenu
   ID="TopNavigationMenuV4"
   Runat="server"
   EnableViewState="false"
   DataSourceID="topSiteMap"
   AccessKey="<%$Resources:wss,navigation_accesskey%>"
   UseSimpleRendering="true"
   UseSeparateCss="false"
   Orientation="Horizontal"
   StaticDisplayLevels="2"
   MaximumDynamicDisplayLevels="1"
   SkipLinkText=""
   Css/>
Change from MaximumDynamicDisplayLevels="1" to MaximumDynamicDisplayLevels="4".

3.
Change from
ShowStartingNode="False" to ShowStartingNode="True"
SiteMapProvider="SPNavigationProvider" to SiteMapProvider="SPSiteMapProvider"
Delete: StartingNodeUrl="sid:1002"

From
<SharePointelegateControl runat="server" ControlId="TopNavigationDataSource" Id="topNavigationDelegate">
<Template_Controls>
   <asp:SiteMapDataSource
    ShowStartingNode="False"
    SiteMapProvider="SPNavigationProvider"
     id="topSiteMap"
     runat="server"
     StartingNodeUrl="sid:1002"/>
  </Template_Controls>
</SharePointelegateControl>



To
<SharePointelegateControl runat="server" ControlId="TopNavigationDataSource" Id="topNavigationDelegate">
<Template_Controls>
   <asp:SiteMapDataSource
    ShowStartingNode="True"
     SiteMapProvider="SPSiteMapProvider"
     id="topSiteMap"
     runat="server"/>
  </Template_Controls>
</SharePointelegateControl>



4. Save and refresh.







欢迎光临 168大数据 (http://www.bi168.cn/) Powered by Discuz! X3.2