Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
6

Try the following CSS to replace the default arrow on the navigation & to align it: .ms-core-listMenu-verticalBox li.static > .ms-core-listMenu-item .ms-navedit-flyoutArrow { background-image: url(images/menu-down.png); float: right; } If you have a multilevel navigation, you need to do the change to the sublevel as well: li.dynamic.dynamic-...


4

Structural navigation is tightly coupled with the content and therefore it is hard to create friendly URLs. However, managed metadata navigation addresses this issue by providing central way to manage navigation, irrespective of location of content, which makes it easy to create friendly URLs. The only con, navigation will be managed by term store. You can ...


4

If you have a page, "page1.aspx" in the pages library, it can be accessed via: http://site/pages/page1.aspx. But, perhaps you would rather be able to access it via: http://site/page1 The above would require some sort of routing table. This routing table could have been implemented in a variety of ways, but they happened to decide to use a term set for ...


4

For enabling structural navigation you can use the code below: var taxonomySession = TaxonomySession.GetTaxonomySession(clientContext); var settings = new WebNavigationSettings(clientContext, web); settings.CurrentNavigation.Source = StandardNavigationSource.PortalProvider; settings.Update(taxonomySession); clientContext.ExecuteQuery(); For other ...


4

I think you need to put url instead SiteUrl it will be like this : string url = SPContext.Current.Site.Url; however this code will not run try to use page variable _spPageContextInfo : string url = _spPageContextInfo.siteAbsoluteUrl; Note : If you use SPContext in Client Object Model code it would be null.


3

Not sure if that's still actual, but I found the solution to this problem. In addition to setting the WebNavigationSettings.CurrentNavigation.Source to "PortalProvider", which you do in your code by calling navigation.set_source(1); you also need to update the property "__NavigationShowSiblings" of the web object. e.g. in PowerShell you can do this (...


3

I found a solution with less code which I think it is the best. It is using CSOM Office Dev PnP: AreaNavigationEntity nav = new AreaNavigationEntity(); nav.CurrentNavigation.ShowSubsites = false; nav.CurrentNavigation.ShowPages = false; web.UpdateNavigationSettings(nav);


3

to change the color of the arrows you can edit the image at "/_layouts/15/images/spcommon.png" but this will have effect on the whole SharePoint environment. More information at: SharePoint 2013 spcommon.png Sprite Breakdown to edit the arrows, you should try looking what element they are in and what css file. (the default css file should be at: "/_layouts/...


2

Try this CSS selector .ms-core-listMenu-verticalBox li.static a { border-top: 1px solid #e9e9e9; }


2

I found also this solution, it is almost the same as the solution of Kai just without the extra ClientPortalNavigation.cs file: // enable structural navigation for the quick launch navigation TaxonomySession taxonomySession = TaxonomySession.GetTaxonomySession(newWeb.Context); newWeb.Context.Load(...


2

With help of you I played little bit and found solution that suits me. It is almost same as Moe's post, but that solution has small problem, image is seen on all of the elements on vertical navigation, not just on ones which have children. Anyway, thanks both on help. Bellow is my code: .ms-core-listMenu-verticalBox li.dynamic-children > .ms-core-...


2

In fact to manage a SharePoint site's navigation, one must have either Full Control or Design level permissions for the site (source). As both of these are high-level permissions, it would likely lead to extreme permission level policy where many of the contents would have unique permissions. Even if that would be well managed, it would still be poorly ...


2

Use target audience. It will work perfectly. Follow below steps : GoTo /_layouts/15/AreaNavigationSettings.aspx In the Structural Navigation section Click on the link/tab that you want to hide for Non-Users of the group Click on the edit option In the Audience property specify the group name that should be able see the link and click OK. Here Only ...


1

use css and Jquery: $('#nav li:has(a.active) > a').addClass('active'); #nav { background-color:#F36F25; margin:0 0 5px 0; width: 100%; height:35px; left:0; z-index:1; border-top:2px solid #FFFFFF; border-bottom:2px solid #FFFFFF; } #nav>li { float:left; list-style:none; } #nav li:hover ul { position:absolute; display:block; z-index:9999; } #nav li ...


1

Check the user's permissions. Do they still have the "Limited Access" permission? This would let them see the library page, but not the content of the library. Go the the Library Settings page for the library, click Library Permissions and the click Check Permissions.


1

It seems the SharePoint Online issue, it not occurs in my SharePoint 2013/2016 environment. If you want to hide the sub sites in current navigation, we can go to Site Settings>Navigation>Structural Navigation: Editing and Sorting, and show or hide subsites links in here.


1

If you are refering to the Office 365 bar you will find the options in the Office 365 admin center under Settings - Organization profile (see https://support.office.com/en-us/article/customize-the-office-365-theme-for-your-organization-8275da91-7a48-4591-94ab-3123a3f79530)


1

Looks like the scripting capabilities is turned off in your site. Whenever you create a new site, the custom scripting capabilities are turned off by default. You need to enable the custom scripting capabilities to have the ability to managed navigation. Option 1: Go to SharePoint admin center > settings. In the settings page, in the Custom Script section, ...


1

You can use _spPageContectInfo object to get the current web url. I have little modified your code to make url dynamic: <script type="text/javascript"> function displayLayover(url) { var options = SP.UI.$create_DialogOptions(); options.url = url; options.dialogReturnValueCallback = Function.createDelegate(null, null); ...


1

I think you might need to be looking into the 'Managed Navigation' features of SharePoint. This is not enabled by default and is dependent on the SharePoint Server Publishing Infrastructure feature being enabled the site collection level. You will then need to create a Managed Navigation term set to store your navigation labels and their respective targets,...


1

I realize that this is an older question but I thought I would answer it since I just ran into the same situation and couldn't find a solution through searching. Items that cannot be hidden through the Navigation Settings on a site can be set to hide/unhide by clicking on "Edit Links" in the Global Navigation menu. You'll see that in the second screenshot ...


1

Turned out to be a simple fix, not sure how this got removed when we reloaded the content DB but instead of ~subsite/folder/page I needed /~subsite/folder/page thanks to anyone who devoted any time to trying to figure out what the issue was.


1

Okay Finally found a solution: this is how the navigation bar looks inside the master page: <asp:ContentPlaceHolder id="PlaceHolderTopNavBar" runat="server"> <asp:SiteMapDataSource ShowStartingNode="False" SiteMapProvider="SPNavigationProvider" id="topSiteMap" runat="server" ...


1

The best way to do this is going into Site Settings -> Navigation. Scroll down to the Structural Navigation: Editing and Sorting section of the page. Here select "Add Heading..." create the title you desire and just put nothing in the URL section - sometimes SharePoint would automatically insert the Default site page's URL and this is why this problem came ...


Only top voted, non community-wiki answers of a minimum length are eligible