Disable second level global navigation

Hi,
We have a requirement where we want to disable second level menu in global navigation.
Business Site1
        |
Business Site 2 --> Business Site 3
So the currently, the Business Site 2 is clickable. Our requirement is that Business Site 2 should not be clickable, only Business Site 1 and business Site 3 should be clickable.
Or on click of business Site 2 , business Site 3 should open.
The setting for global navigation is to inherit from parent site and Show subsite is set to true. So there are no explicit nodes created. All the nodes are for Subsites. In this way when I try to change the settings programmatically, the count of nodes
is 0 as there are no nodes available.
Please help.
Regards,
Vijay

Hi Victoria,
Thanks a lot for the above script. That has worked for me and I am able to disable only the second level navigation. Just one correction is needed in the above script. "static" class should be replaced by "dynamic". So the final script would look like this:
<script src="http://code.jquery.com/jquery-1.10.2.min.js"
type="text/javascript"></script>
<script type="text/javascript">
  $(function ()
  $(".s4-tn li.dynamic.dynamic-children > a").attr("href","#");
});</script>
The above script will work perfect. I am marking this as answer. Thanks again.
Just one more question. Will that above script be limited to global navigation only. Won't that affect any other links on the Site.?
Regards,
Vijay

Similar Messages

  • Why SharePoint 2013 have only 2 level global navigation ??

    I just want to know why SharePoint 2013 have 2 levels of global navigation hierarchy by default. Is it possible to make it up to 3,4 levels.
    For example:
    Main Site -> Subsite -> Subsite Nodes -> Subsite Nodes Subsite -> Child Nodes & so on
    Something like above hierarchy.
    Thanks in advance for your answers..!!

    Yes, you can absolutely have more than 2 levels of navigation. You will need to update your master page through to allow for more dynamic levels of navigation.
    You might find the following thread helpful.
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/05cfb854-9a18-4f61-a9f4-55d9cd3130ec/create-multilevel-global-navigation-menu-in-sharepoint
    Also be aware that there was a bug in SP2013 where only two levels of navigation would ever show. This was fixed last year.
    http://ericoverfield.com/sharepoint-2013-structured-navigation-dynamic-menus-fixed-august-2013-cu/
    Eric Overfield - PixelMill -
    ericoverfield.com -
    @EricOverfield

  • Show Portal Sub-Role on Second Level Navigation

    Hi Experts,
    We have a requirement, to embed some of our portal roles within some master roles.
    Issue
    I have a role called Parent_Role on the portal
    Then I have two other child roles:
    Child1_Role
    Child2_Role
    Now if I add Child1_Role and Child2_Role as sub roles to the Parent_Role, and then assign the Parent_Role to my User ID,  I see both Child1_Role and Child2_Role on the first level of Top Level Navigation. However, I don't see Parent_Role on TLN.
    What I need to do is, have Child1_Role and Child2_Role show up on the second level of navigation, and have Parent_Role show up on the first level of navigation.
    Is this possible?
    Thanks!
    Max

    HI Max,
    Ideally this is what happens what you have requested for , Can you check whether the entry point is yes for you Parent Role.
    1.) Create a Parent Role and make entry point "yes".
    2) Assign the child roles to the Parent Role.
    3) Assign the Parent role to the User.
    This should work fine.
    Thanks
    Pankaj

  • Levels of navigation...

    Hi,
    I have a scenario wherein we have "XYZ" as the top level navigation.
    Under "XYZ" we have "ABC" and "DEF" as the second level of navigation.
    When I click on "DEF" I should see a third level of TLN.
    But when I click on "ABC" I should not see the third level of navigation.I should just see the detailed navigation.
    Is this possible?
    Could someone please help me with this?
    Thanks in advance,
    Sudha.

    Yes...it will be added to the default framework page and thus be used on all other pages.  That's why I don't recommend doing this.
    One possible workaround
    If you need a 3rd top level navigation (especially without the detailed navigation panel being displayed), you could create a custom iView that displays only the 3rd level of navigation using the Navigation Tag library.  Add that iView (without the tray) to all pages within this section of the portal above the other content on the page.  It will give the appearance of being a 3rd level navigation menu without actually being part of the framework.  This would be a lot harder if you still want to use the detailed navigation since you would need to find a way to get that to start displaying at the 4th level for that section instead of the 3rd (no ideas there).

  • Second sub-site level horizontal navigation

    In SharePoint 2013 Enterprise, I have a publishing site collection on a master page build with the Design Manager. The global top-level navigation contains links to various sub-sites. Their desire is to have a horizontal sub-site navigation underneath the
    global navigation. This is identical to the issue at the link below, however for SharePoint 2013.
    http://social.msdn.microsoft.com/Forums/en-US/d2704d33-d285-4d8c-8a4e-6e66cf36a9fc/top-navigation-how-to-add-a-second-layer-for-sub-sites?forum=sharepointcustomizationprevious
    On the root site of the site collection:
    Global nav: Department 1  |  Department 2  |  Department 3  |  Department 4  
    No sub-nav
    At the sub-site, for example in Department 2's sub-site:
    Global nav: Department 1  |  Department 2  |  Department 3  |  Department 4  
    Sub-nav: Dept2-page1 | Dept2-page2 | Dept2-page3 | Dept2-page4 | Dept2-page5
    What is the best practice way of adding a 2nd sub-site level navigation?
    Also, as an option, would this solution work in a custom page layout file?

    I was able to accomplish this by first creating a SharePoint List of Titles and URLs (text field) for the secondary navigation, and then generating the <ul> using the SPServices jQuery library inside of a custom page layout. Alternatively, this secondary
    nav could be embedded into a Content Editor or inside a Master Page rather than a Page layout, but this suited my client's business case the best.
    You can find more info on the SPServices on their codeplex site.

  • Second level navigation menu not highlighted

    Hello Experts,
    We have a par file which is redirecting to a third party website from portal using Response.sendRedirect.Here the issue is when the third party website opens in the same window in portal,second level navigation menu is not getting highlighted,its still highlighting the previously selected menu.We are on EP6 SP16.
    Thanks in advance,
    Suresh

    Hi Suresh,
    I guess that's because you are just redirecting the page & this doesn't refresh the Navigation nodes.
    Hence just try adding the below code before redirection.
    refreshPage() ;
    function refreshPage() {
    try {
    frameworkSupport.refreshContentArea();
    } catch(e) {
    document.location.reload()
    Redeploy and check. I think it should work.
    Regards,
    Santhosh

  • ESS worksets not visible in second level navigation

    Hi all,
                    I installed ESS 600 sp08 on EP 7.0. I dint changed anything.The ESS worksets should be visible in the second level navigation .But in my case they are not visible in the second level navigation.They are visible in the detailed navigation.
    What can be the reason for this?I want the ESS worksets to be visible in second level navigation.
    Any clues please.
    Thanx and regards,
    rajesh

    Hi
    As posted above, this could be an issue with TLN level. To reset TLN level, check out this [link|http://help.sap.com/saphelp_nw70/helpdata/EN/5a/33befa45ca7f459b24d0c5d51d0749/frameset.htm].
    Regards
    Prabhakar

  • Problem in second level navigation for some users.

    Hello friends,
                    We have a group with few users, we have assigned certain roles to that group, all the roles are visible to all but the order of second level navigatin has changed for some users and not for all. Please suggest some solution.
    Thanks,
    Mitts

    Hi Mittal,
    Is there any merging of roles going on?
    When you assign new roles, does the 2nd level navigation contain the same nodes but in a different order, or are there additional nodes added?
    Perhaps you can explain in more detail the set up.
    Daniel

  • No refresh second level navigation

    Hi,
    When I click the same second level navigation item again the selected page or Iview is not refresh its self. When I click another item on the second level navigation and go back to the previous item the page or iview is refreshing.
    Does someone has a solution! I'am using portal 7 latest patch
    Kind Regards,
    Richard

    Hi Ravi,
    Can you turn on navigation debugging and post the log file?
    Daniel

  • Controlling visibility of Second Level navigation tabs in portal

    Hello,
    I have a request to create second level navigation based on user authorizations. The first level nav is called Applications, the second level navs under it are called SAP and BI. I only want to show SAP for some users and BI for others, and in some cases both.
    When I created workset Application and assigned SAP and BI worksets under it, no matter that what authorization I give or not give to the user, both of them show up, unless I remove the role for Application worset, then nothing shows up.
    If I remove SAP and BI worksets from Application workset, no matter what I do with roles, they do not show up. I kinda guessed that this will happen but just tried something anyway.
    Can someone please explain who this can be done or is it not possible?
    Thanks,
    Alex

    Hi Alex,
    The navigation structure does not depend on authorizations but only on the roles assigned to the user (directly or through groups).
    For your structure, you would create two roles, one SAP role and one BI role. Both roles start with an RoleFolder "Applications" as the role EntryPoint, where the child of this node within the SAP role is the SAP workset and the child of this node within the BI role is the BI workset. To get them merged, you will have to maintain the mergeID property on the corresponding elements; see http://help.sap.com/saphelp_nw04s/helpdata/en/53/89503ede925441e10000000a114084/frameset.htm for details of the merging concept and properties (that is what you are looking for).
    Hope it helps
    Detlev

  • How to diffrentiate the colour in the  Second level navigation

    Hi Friends,
    If the user selects the tab in the second level navigation how to make diffentiate in colour with other tab  in the second level navigation.
    Thanks
    Srikanth

    Hi,
    Normally it becomes bold if a user clicks on any workset
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60caa539-8e51-2a10-0e83-e0a68ab3f5aa
    For color changing you can do it by customizing the masthead par.
    Sorry if I mis understand.
    Thanks and regards,
    gopal.

  • IView from second level navigation merged with Other page

    Hi All,
    I encountered a typical problem with iViews.
    I have second level navigation with links as AAA,BBB,CCC (work sets) added to the Role-1.
    CCC is a work set which is been added with pages CCC-1,CCC-2,CCC-3. (CCC-1,CCC-2,CCC-3 are also added to detailed level navigation).
    Now on clicking of CCC (second level navigation link), I have page displaying with CCC-1 (which is working as desired).
    Now I have page DDD wh.ich is directly to the Role-1. Hence now second level navigation is displaying as AAA,BBB,CCC,DDD on clicking on Role -1 .
    Now when I click on CCC, while displaying the contents of CCC-1, DDD (page) is also displaying beneath of the CCC-1.
    I don't want this DDD merging with CCC-1.
    Can any one help me, how to resolve this issue.
    Thanks in Advance,
    Chinna.

    Hi,
    Just a thought : you could create a new workset and put DDD in it and see if that helps.
    Regards,
    Pierre

  • Problem with open in new window for second level tab

    Hi Friends,
    I am using 2 level tabs in my application. In my second level tab when i right click and select *open in new
    window* it is giving Page not found error. But for the first level tabs it is working correctly. How can i fix this so
    that either i can show the page when right click the tab and select open in new window or disable the right clicking
    for the second level tabs. Please help,
    Thanks
    Jeev

    Hi,
    I don't think its exactly possible, as tabs use javascript:doSubmit('somevalue'); and you can not open javascript in a new window, as javascript usually references the current page you are on, and since you open the javascript in a new window, it doesn't know what to reference. The most helpful thread I found was : Re: Open other tab in a new window (ATD reply, third from the bottom).
    Ta,
    Trent
    Edited by: tr3nton on Dec 3, 2009 4:19 PM; Hari beat me to linking to the correct thread, my bad.

  • I cannot disable the full keyboard  navigation

    Hello I have quite a problem.
    As it says above, I cannot disable the full keyboard navigation option, whenever I try to, it re-activates itself in the preferences, even if I just change tabs and return within the preferences.
    Furthermore, the keys seem to activate oddly, as I do not know of any shortcuts bound to the S key (JUST the s key), which commonly causes Itunes to skip forward a track in whatever playlist I am playing.
    I have tried changing the other preferences, and I can change them with no difficulties, it is just the Keyboard navigation that is giving me problems.
    Any help would be appreciated.
    Thank you in advance.

    On second thought... The help article cor-el linked mentions that Firefox may prompt you every time if the file is sent with the disposition:attachment header, i.e., forced save. You can bypass that problem (change disposition:attachment to disposition:inline) using the Inline Disposition extension. It has been around for a while, but I haven't tried it myself: [https://addons.mozilla.org/en-US/firefox/addon/inlinedisposition/]. Maybe that's what you need for Gmail.

  • Tool tips in second level navegation

    Hi Experts,
        I'm working with SAP Portal 6.0 and I need to implemet the next functionality:  It is possible to include a tool tip in the second level of top navegation menu?
    Any help would be appreciate.
    Thanks,
    Sergio Sepúlveda M.

    ok, no problem.
    I modified the file toplevelnavigationJS.jsp in D:\<PORTAL INSTALATIONS>\irj\root\WEB-INF\portal\portalapps\com.sap.portal.navigation.toplevel\pagelet
    The functions to replace is
    return "<TD nowrap id=\"navNode_" + level + "_" + id + "\" " +
                "onkeydown=\"navNodeKeyDownHandler(" + level + ", " + id + ")\" " +
                "class=\"" + tdClassName + "\" " + onMouseClickEvent + onMouseEnterEvent + ">" +
                "<A id=\"navNodeAnchor_" + level + "_" + id + "\" " + title508 + " href=\"#\" " + nodeName + " class=\"" + aClassName + "\" tabIndex=\"" + tabIndex + "\" " + ">" + visibleTitle + "</A>" +
                "</TD>" + sepTD + lastTD;
    for
    return "<TD nowrap id=\"navNode_" + level + "_" + id + "\" " +
                "onkeydown=\"navNodeKeyDownHandler(" + level + ", " + id + ")\" " +
                "class=\"" + tdClassName + "\" " + onMouseClickEvent + onMouseEnterEvent + ">" +
                "<A id=\"navNodeAnchor_" + level + "_" + id + "\" " + title508 + " href=\"#\" " + nodeName + " class=\"" + aClassName + "\" tabIndex=\"" + tabIndex + "\" " + accessKey + " title=\""+ <b>FUNC_VISUALIZAR(visibleTitle)</b> +"\">" + visibleTitle + "</A>" +
                "</TD>" + sepTD + lastTD;
    // Funcion creada por Sergio Sepulveda
    // 06 Sep 2005
    // 08 Sep 2005 - Modificado
    function <b>FUNC_VISUALIZAR(Nombre)</b>{
       if (Nombre == "Datos Maestros")
         return "Datos Maestros";
       else if (Nombre == "Inicio")
            return "Inicio";
    this is working ok now, but if anybody knows how to do it in a simple way, it will be very usefull for us
    Thanks in advance
    Sergio

Maybe you are looking for