4

The best way to go about this would be to use SharePoint Audiences. You can create an audience that is based on a user profile property. And then you create your navigation to use the audiences when determining who to show the links for. Alternatively you can write your own navigation provider that feeds the top navigation with whatever data you want.


4

To hide it during Print, you can use the following CSS: @media print { div#suiteBar { display: none; } }


3

Alright, so after peering into the inner workings of the code behind for those settings pages, I've found that you can detect the source of the publishing site's navigation by using the WebNavigationSettings class and reading its GlobalNavigation.Source property (a StandardNavigationSource enum) like such: if (PublishingWeb.IsPublishingWeb(web)) { ...


3

your last comment was the answer I was looking for. Thank you very much. Here is the Powershell Skript to ensure that somebody else can find it in the future: $w = get-spweb http://site/site $nav = $w.Navigation.TopNavigationBar $newLink = new-object Microsoft.SharePoint.Navigation.SPNavigationNode -argumentlist @("New Link", "/new-link/default.aspx") $nav....


3

I was able to hide it using the following script ul.ms-core-listMenu-root > li:first-child > a { display: none !important; }


3

I used the following CSS code to hide it: .ms-breadcrumb-top ul.ms-core-listMenu-root>li.static>a.static.menu-item{ display:none; } You can add the above to the alternate CSS file for the site collection. Hope this can help.


2

Even though top link was missing from settings, by adding /_layouts/15/topnav.aspx to your site URL you can open it https://xxxxxxxx.sharepoint.com/sites/xxxxxxxx/_layouts/15/topnav.aspx


2

Not only "SharePoint Server Publishing" should be disabled, but under "Site Collection Features" you have to deactivate "SharePoint Server Publishing Infrastructure" also.


2

Yes, you can do it. Use this: $("body #s4-topheader2. ul li ul li.static > a").each(function(index) { if(index!=2) { $(this).attr("href","javascript:void(0);"); } }); Cheers !


2

This menu is in charge of your navigation usually, and the attribute MaximumDynamicDisplayLevels is the one handling flyouts. According to your statement, it should work by setting to at least 4 " UseSimpleRendering="true" UseSeparateCss="false" Orientation="Horizontal" StaticDisplayLevels="2" ...


2

Yes, you can put the link inside SPSecurityTrimmedControl control like this <%--content %> Following link shows the possible values for Permission String: http://sympmarc.com/2008/12/31/spsecuritytrimmedcontrol-possible-values-for-permissionsstring/


2

The child combinator selector will to do the trick: ul.ms-core-listMenu-root > li > a { display: none; } You may need something more specific to override Microsoft's own core CSS. So if your navigation lives in a <div class="header">, then .header ul.ms-core-listMenu-root > li > a would do it. Now, if anyone knows how to do this by ...


2

You can inherit the navigation via: SPWeb web = parent.Web.Add(/*params....*/); web.Navigation.UseShared = true; Use it just after you have created the site. More Information: MSDN


2

Use "../yoururl/targetlocation", with those two dots. Edit: Or you could also use the complete URL, e.g. http://sitecollection/subsite/


2

This article references that users must have Full Control or Design permission to be able to modify the quick launch (for 2007, but afaik, this has been unchanged throughout the versions). It doesn't explicitly say which of the permission masks enables it. Has your Site Members group had it's permission level modified? Based on this, they should not be able ...


2

The navigation options which you have set tries to pulls the items from managed metadata term sets. Change the Global and Current Navigation settings as below to display the pages as navigation items. The folders will not be displayed as navigation items. But you can still add the folders manually and move the pages accordingly under the same navigation ...


2

<nav class="nav" id="navigation"> <!--MS:<asp:SiteMapDataSource ShowStartingNode="false" StartingNodeUrl="sid:1002" SiteMapProvider="GlobalNavSiteMapProvider" ID="topSiteMapLevel1" runat="server">--> <!--ME:</asp:SiteMapDataSource>--> ...


2

Try below code in Script Editor: <script type="text/javascript" src="http://code.jquery.com/jquery-1.2.6.min.js"></script> <script type="text/javascript"> $(document).ready(function() { //Define new links var newLinks = "<li class='ms-core-suiteLink'> \ <a class='ms-core-suiteLink-a' href='http://extranet.crescent.com'>...


1

Following are the steps for solution: 1) Open your main site in SharePoint Designer and copy v4.master for Backup 2) Open v4.master Master page of your site 3) find the <div id="s4-topheader2" class="s4-pr s4-notdlg"> which inside the <div id="s4-titlerow" class="s4-pr s4-notdlg s4-titlerowhidetitle"> and put it below and outside of it and ...


1

This works on my test environment to change all all my dropdown links to '#'. I only had 2 levels though so you'll have to tweak accordingly. It should give you an idea though... $(".s4-tn li.dynamic-children li.dynamic a").attr("href", "#");


1

You could achieve that using jQuery. Get the first link of the dropdown menu and set the href of that link. $(function() { $("#DeltaTopNavigation > div > ul > li > ul > li > ul > li > a:first").attr("href", "#"); }); If you want the link to be completely unclickable, then you could also remove its attribute. $(function() { $...


1

Could you please advice how would I do that in Sharepoint Foundation 2010? I had to delete on of the links created along with a Site it was linking to(it was only visible to poeple intended to see it). When I recreated it manually, I got into a problem that people that not suppose to see that link(bacause they don't have permission to access that site) can ...


1

As I understand you only want to remove site name on the top of the page? If yes, you should edit your Master Page and remove from it needed section. You can find it at the virtual directory _catalogs/masterpage/<master-page-name>.html of your site.


1

You need to login because probably you use NTLM and due to using Host-Named SC the browser considers it as a totally different web, due to different Host Header (or domain!). For the 2nd aspect you need to give us more context, it might be due a cross-domain security issue, but honestly is a shot in the dark.


1

I hope you will get different way to do achieve this by following url: How to hide/show My Site link on portal in personal menu?


1

Thanks! I actually just stopped inheriting permissions for the specific page and created a group containing just the users I want. Now If a user logs in and is not part of said group, he/she can't even see the link to the page. This is a good way of doing it right? I did not try the SPSecurityTrimmed control yet but this seems to satisfy my needs. Thank ...


1

In terms store you can choose to display in Global or Current Navigation. Select your term and then select Navigation tab, in "Visibility In Menus" section. If you check "Show In Global Navigation" then term will appear in top navigation. If you check "Show In Current Navigation" then term will appear in current (side bar) navigation.


1

I believe you are looking for CSS classes of the s4-tn being the default class given to the ASP:MENU .s4-tn{ background-color:#00557B; padding:0px; margin:0px; } /* Global navigation */ .s4-tn li.static > .menu-item{ color:#fff; white-space:nowrap; border:1px solid transparent; padding:4px 10px; line-height:25px; height:28px; } /* Hover */ .s4-tn li....


1

As you might know already the Top-Navigation bar is not cross site collections (Collaborative or Publishing). One alternative is to make your own Portal site map provider and use it in a custom master page or by using the Delegate control with your own (e.g. deploy a SiteMap physically, or a any other more dynamic variant). Many variations are available, ...


1

I have done it in 2010 too. In my case a little house icon was wanted instead of the global nav link to the home page so I used a little bit of jQuery to find the URL and replace it with the icon.


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