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

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.


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

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

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

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

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

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

Site settings / Look and Feel / Navigation. Check Global Navigation and structural navigation


1

Here is how I coded my nav. The script will detect which link is clicked and the css will then highlight it. Wrap your navigation with this code in your master page: <script type="text/javascript"> $(function() { $('nav a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('activeMenu'); }); </script> <div id="sse50"> <nav ...


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

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 need to disable both features like "SharePoint Server Publishing" and "SharePoint Server Publishing Infrastructure". Definitely, it will be visible(Top link bar). Because it is a default feature so Once you activate the publishing feature by default the Top link bar feature will be disabled.


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.


1

If you mean in Sharepoint 2013 there are new delegate controls that enables you to control what will render in the header of the page (in for example the suite bar logo and links). By creating your own control you can modify exactly what HTML that will be rendered, and hence also display icons. Zimmergren shows the different delegate controls and how to ...


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