Highlighting parent level navigation

Hi,
Can someone help me on how to highlight the parent level navigation when child level navigation is selected using idoc script?
Thank you,

Do you mean within Site Studio?
If I remember correctly...
SiteStudioNavNodes resultset should contain the list of all the nodes in the hierarchy.
So as you iterate through the navigation and build your markup you need to change the CSS class depending on this.
Tim

Similar Messages

  • Tab in Top Level Navigation is not highlighted when clicked on

    Hi guys,
    We have 1 problem in EP 6.0:
    I create 1 iview(testiview), and attached to the role(testrole), assigned to 1 user, then login with that user. In top level navigation, i am able to see the role(testrole) in top level navigation, but after i clicked, the tab for this role is not highlighted, but the content of iview is displayed,
    Any one knows what happened?
    Thanks!
    Guo Feng

    Hi Guo
    You have created one role and added one iView under it.
    now can u tell which one you made as entry point.
    if Role is the entry point are you getting the iView link in the DTN ?
    If you made iView as entry point and then you r getting the content in content area and the iView link in the top.
    i think the second one happens...
    Check the role and iView properties .
    Make the Role as entry point..
    Cheers
    Chinmaya
    Reward for helpful answers

  • 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

  • On click of any tab in First level navigation next tab getting highlighted

    Hi All,
         In portal when i click on any of the tab in First level navigation the next tab is getting highlighted. please help me out in this.
    Regards,
    Lakshmi

    Hi
    which theme u r using? and what versions u r on ?
    jo

  • Customized Top Level Navigation iView

    Hello to all
    We are using a customized TLN iview. Its source code was modified to admit different URLs, and do the filtering depending of the default framework page which is using the TNL iview,
    I mean, the TLN would be copied inside a proyect folder on the Portal Content, where would be a DFPage that contains a copy of TNL iview, and this copy would have a different roleFilter attribute.
    Then, the TLN was modified again in order to merge roles that had the same name.
    Those changes doesn't seem really important, they have just declared some vars, and each of them added one code line. The first one extended the first part of an IF condition, and the second one extended it with another condition, using OR.
    The problem is that after the modifications, our TLN doesn't highlight correctly the first node when accessing or refreshing the Portal, instead of it shows a default start page that doesn't belong to any of our roles
    The TLN iview has a procedure named PrintNavNodes, which is called on the event OnClick (I assume), and when we accessrefresh the page too.
    The iview works well when clicking its buttons, it's just the first time it is used when the wrong page is shown, that's the problem we need to correct.
    This procedure (PrintNavNodes) lodges the code changes. The only var modified is String prefix, so maybe anyone could tell me a default value to it, o a way to catch that mistake in order to show another page when the default page is to appear.
    Also, I would appreciate if anyone knows about an API, andor a How to... manual, or any kind of documentation about this subject.
    We have no possibility of reject the changes, so we need to find an alternative solution. Here is the code...
    Thanks in advance, and regards
        private void PrintNavNodes(IPortalComponentRequest request, IPortalComponentResponse response)
         ILogger loggerArquitectura = request.getLogger(portal_logger);
             String strDataToPrint=;
         NavigationEventsHelperService navHelperService = (NavigationEventsHelperService)PortalRuntime.getRuntimeResources().getService(com.sap.portal.navigation.helperservice.navigation_events_helper);
         NavigationNodes initialNodes = navHelperService.getRealInitialNodes(request);       
    !-- Change Heiko Broker for SiteNavigation          
              IPortalComponentContext componentContext = request.getComponentContext();
              IPortalComponentProfile profile = componentContext.getProfile();
              String roleFilter = profile.getProperty(RoleFilter);
            if(initialNodes != null)
         INavigationNode firstChild = null;
         INavigationNode firstContent = null;          
         String prefix=ROLESportal_content;
    !-- Change Marta Alberto
         PROBLEM In the new TLN, when using the merge roles feature, the
         url of the merge roles is different (start with the word merge.....).
         This is a wrong implementation because it filters all the nodes that do
         not start with ROLES.
         SOLUTION Compare with the other prefix too.
         String newPrefixThatFixesTheProblem=MERGESportal_content;          
         String newPrefixThatFixesTheProblem=merge(;
                if(initialNodes.size()  0)      
                for(Iterator it = initialNodes.iterator(); it.hasNext();)
                    INavigationNode initialNode = (INavigationNode)it.next();
                        strDataToPrint=initialNode.getName(),;
    !-- Change Heiko Broker for SiteNavigation          
         if (initialNode.getName().startsWith(prefix+roleFilter)
    !-- Change Marta Alberto
         PROBLEM In the new TLN, when using the merge roles feature, the
         url of the merge roles is different (start with the word merge.....).
         This is a wrong implementation because it filters all the nodes that do
         not start with ROLES.
         SOLUTION Compare with the other prefix too.
          initialNode.getName().startsWith(newPrefixThatFixesTheProblem + prefix + roleFilter))                    
                         firstContent = PrintNode(initialNode, request, response, 0);
                         if(firstChild == initialNode)
                             if(firstChild.getLaunchURL() != null && !firstChild.getLaunchURL().equals())
                                 firstContent = firstChild;
                             else
                             if(firstContent == null)
                                 try
                   firstContent = firstChild.getFirstChild();
                                 catch(NamingException e)
                   ILogger logger = request.getLogger(navigation_logger);
                   if(logger != null && logger.isActive())
                        logger.severe(this, e, Exception in Top Level Navigation);
                             HttpSession httpSession = request.getServletRequest().getSession();
                             httpSession.setAttribute(NavFirstContentNode, firstContent);
                }  end FOR
            response.write(););

    Hi,
    Check authentication related properties of iView. Make sure all of them are set to lowest level or none
    Regards,
    Ganga

  • How to make top level navigation not refresh

    Hello Guys,
    I have a question concerning on my External Facing Portal, my boss wants that when I click on a tab or a link in the Top Level Navigation , to load the content in the Content Area without refreshing the whole page, What I want is that when I click on a tab or link of the Top Level Navigation , the Top Level Navigation and the MasterHead not to refresh and that the content be loaded and refreshed only in the Content Area. The only way I know to do this is by making a frameset of my page and to make the masterhead and toplevel navigation a frame and the detalied navigation a frame and the content area a frame, and in the links to put the target property to the name of the content area frame, but I don't know if this is possible to do in the portal, I see that all is embedded and I don't know how to make a frameset like this in the portal.
    Any highlights to solve this will sure be appreciated.
    Thanks
    Rewarding points will be given.
    Luis

    Hi,
       When you are implementing External Facing Portal, i think you have used Light Framework Page.  In Light Framework Page, only one Framework has been used, so when you click on the top level navigation, the whole page will get refresh, so there is no otherway as of my knowledge.  If you use standard framework page in portal, it is possible to do (i.e. the content area only get refresh)  and the concept of your External Facing Portal is eliminated here.
    Regards,
    Venkatesh. K
    /* Points are Welcome */

  • 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

  • Top level navigation problem anonymous portal

    Hi everybody,
    We have an anonymous portal with named anonymous users.
    When you log on in the portal with a normal user, the top level navigation works fine and all the content is displayed.
    When you log on in the portal with an anonymous user, all the content is displayed, the top level navigation works.
    But when you press e.g.: the second tab in the top level navigation, you can see the right content, but the tab is not highlighted. In the normal portal the tab is highlighted. The auth scheme of my top level navigation iview is set to anonymous.
    Did I forgot to set a standard sap iview to anonymous or something?
    Kind regards,
    David De Kerpel

    Hi,
    You have the following options to solve this problem as suggested by SAP:
    1. Disable the short urls feature. Go to System Administration --> Navigation --> Short URLs, set the "Use short URLs" to false, save the configuration and restart the J2EE Engine.
    2. Log in as a standard user (not anonymous) and navigate to all iViews/pages that will be viewed by anonymous. Navigating to an iView/page or a navigation node means that you can see a link to it in the TLN or DTN.
    3. Deploy the PAR file attached in the SAP Note 913367, which fixes the problem.
    Regards,
    Srinivasan T

  • Top Level Navigation Manipulation in "Hosted Portal"

    We are in a position where we have to begin hosting additional content in our portal from a portal that is being decommissioned.
    The problem is we need to keep it seperate from the existing content from a user access point of view.
    While users can have access to roles from the existing content and from the soon to be "hosted" content, they have not to be seen in the portal at the same time.
    For example if the user accesses the portal with URL 1 they only see tabs in the top level navigation for the current content but if they access using URL 2 they only see tabs in the top level navigation for the "hosted" content.
    I know we can control most of the issues such hosting raises using URL Aliases in our Desktop Rules to display different desktops, but wanted to know if anyone knows of a simple way that this can be enforced in the standard top level navigation iView via either configuration or simple code change to prevent us having to develop our own TLN to cope with this.
    We are currently on EP7.0 SP13
    Thanks (and of course points) for any help you can offer.

    Hi Micheal,
    Thanks for your suggestions.
    We have managed to get halfway to our required solution with a very simple change to a copy of the standard top level navigation whereby we only process the PrintNavNodes method for iterations of the "initialNodes" which have the required node names - e.g.
    private void PrintNavNodes(IPortalComponentRequest request, IPortalComponentResponse response)
    for(Iterator it = initialNodes.iterator(); it.hasNext();)   {
    INavigationNode initialNode = (INavigationNode)it.next();
    // Start of Change - Portal Share Project
    String nodeName = initialNode.getName();
    if ( nodeName.endsWith("ccmaint_user")  ||  nodeName.endsWith("ccmaint_supervisor")  ) {
    // End of Change - Portal Share Project            
    firstContent = PrintNode(initialNode, request, response, 0);
    try {
    This effectively filters out the unwanted tabs in the desktop where this amended TLN is used. 
    This works fine where the tabs you want to see have sort priority putting them at the front of the list but leads to problems when used for the converse set of content as the desktop is still referring to the full "initialNodes" list and so while filtering at this level does render the TLN as required, it becomes unusable as the tab positions are still considered to be as they would be if you had not filtered any.
    For example:
    We have 5 tabs in total.  For URL 1 we wish to show only tabs 1 & 2.  For URL 2 we want tabs 3, 4 & 5.
    Using this method for URL 1 we are fine as Tabs 1 & 2 are in the correct positions but for URL 2 when the tabs are rendered they appear in positions 1, 2 & 3 as required but act somewhat as though they are still in positions 3, 4 & 5 (e.g. Select the first tab and the 3rd is highlighted and a page error occurs - "'children' is null or not an object").
    Not only this but the Inner Page still displays the content from the filtered tab 1 as opposed to tab 3.
    Can anyone advise a way we can get round these issues?
    Thanks
    Ian.
    P.S. Please excuse my naïvety in this area.
    Edited by: I. Butcher on Mar 27, 2008 10:31 AM

  • First level navigation in Custom resource provider WAP

    Hi,
       we have created a custom resource provider in WAP,im able to display the grid in the tab which is displayed
    when custom resource provider is clicked.
    How can we achieve the first level navigation on clicking on any item in the grid and after navigating need to display subtabs
    and display usagebars in each tab.
    The live example for the above scenario is "Virtual Machines" resource provider in public azure portal.
    how can we achieve similar functionality in our custom resource provider??
    any help is really appreciated

    HI Manesh,
     thanks for your solution...im able to implement first level navigation successfully.
    But Im facing one issue .PFB the details
     the subnav tab template is as below:
    <div class="vmdashboard">
        <div class="vm-overview">
            <div class="vm-usage">
                <div class="vm-dashboard-usage">
                    <h2>"usage overview"</h2>
                </div>
                <div class="vm-attacheddevices">
                    <h2>"attached devices"</h2>
                    <div class="gridContainer"></div>
                </div>
            </div>
        </div>
    </div>
    so first time when I on the navigation click on the Parent Tab it navigates to the subtab and displays the data as expected,now when I click on back button some part of the template in the subtab is getting displayed along with the parent tab grid data(on
    top of the parent Tab grid).
    ie in this case if I navigate back to parfent tab from subtab the headers mentioned in the above template were also getting added in parent Tab as shown in the below order.
    Usage overview
    attached devices
    parent tab grid
    this should not happen as I don't have the headers in parent tab template.
    I tried adding the below code in cleanup function of subtab
     function cleanUp() {
            if (grid) {
                grid.wazObservableGrid("destroy");
                grid = null;
                var parent = $(".vm-dashboard");
                parent = null;

  • Show a menu of roles in the Top Level Navigation

    Hello,
    Imagine a scenario where a user has many roles assigned to him (say 40 roles). In that case the user will have 40 tabs in the first level of the top level navigation and by default a horizontal scroller appears on the right part of the screen clicking on which the roles will scroll horizontally. If the user has to go to the 40th role he has to click quite a lot.
    Is it possible to have a menu option clciking on which we get the all the list of roles in the top level navigation in a vertical list and we can directly jump to any role clicking on the entry in the list ?
    Something like what we get in a tab strip in Web Dynpro.
    Thanks in advance for your valuable inputs.
    Sundeep
    Edited by: Sundeep Sethi on May 3, 2011 3:00 PM

    Hi,
    Yes it is possible to have menus as you wish .
    Look at the following links
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/6066b302-09c8-2a10-a894-eb9fef30df85
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a1aea5-a2d1-2a10-c6bc-953bdadfdcb8?QuickLink=index&overridelayout=true
    You need to work on navigation tag libraries to extend number of levels .
    The above inks helps you only for single level of navigation.
    Regards
    Karthiheyan M

  • Top Level Navigation - Design bar borders

    SAP EP 6.0 SP9 on NW04
    We're using the top level navigation iview (TLN) out-of-the box and have configured the look and feel of TLN using the Theme Editor so that it follows the customer's corporate identity.
    However, we cannot remove the two white vertical borders around the design bar in top level navigation or change the color to the same color as the top level navigation. It is only possible for us to change the background color of the design bar but not the color of the design bar border. The marketing department thinks this is a huge issue, which must be fixed.
    We're almost certain that the problem cannot be solved by configuring the Theme Editor.
    Does anybody know whether it is easy to modify the code or css files to change the white borders of the design bar? Any idea of what is the best approach?
    Best regards
    Peter
    Can

    Hi,
    I have similar problem but there is no "Display of Design Bar Container" option in the Top Level Navigation section of the Theme editor.
    Thanks,
    MM

  • Top Level Navigation jumps to wrong workset

    Hi,
    In our portal (SP15), rather than loading the first page/iview of each workset in the top level navigation, we wanted a starter page that said something like 'click a menu item to continue'. To achieve this, I created the relevant URL iview and added it (delta-link) to each workset that appeared in the TLN. I then changed the properties of the iview so that it was Invisible in the Navigation AND Default Entry for Folder. So now when you click on a TLN node, the iview appears but doesn't show in the menu.
    However, this has created some strange behaviour. Once a node on the TLN has been selected that points to proper page or iview (i.e. one that appears in the navigation), if you then click on any workset on the second level (first level ones are ok), the TLN "jumps" back to the node which has the page/iview - but still shows the starter page iview. This means that users can't access any workset on the second level, except the first one to be displayed (i.e. when you have several nested worksets in a workset).
    Can anyone explain why this is happening? The problem only occurs when the starter iview is both Invisible in the Navigation AND Default Entry for the Folder. Is this expected behaviour (and if so, why?) or is it a bug? Is there another way to achieve what we want?
    Many thanks
    Jane

    If I do that, the iview does not appear because I already have an Entry Point above that level (i.e. the Workset). Entry Point as Yes only sets the initial navigation node, it doesn't force an iview to appear. (or at least this is what my testing has shown).
    We may have to rethink how we can do this - does anyone know of a way to stop the first iview/page loading in every TLN node, and instead just showing the portal background?
    Many thanks
    Jane

  • Top-Level Navigation Bar - Is it possible to make it 3 levels?

    Dear Portal Experts,
    Could someone please advise if it is possible to make the Top-Level Navigation Bar show more than 2 menu levels?  I looked at the document and it said we can only have 1 or 2 levels.  But I'm just wondering if there is any way around it.  Thanks.

    yes you are right .we can set only 1 0r 2 levels but good news is there is a workaround
    follow this blog
    Tag  Libraries: Creating a Hover Menu in SAP NetWeaver Portal
    reward points if helpful

  • Hide Top level navigation if user assigned only one role

    Hi,
    I would like to hide the top level navigation if user assigned with only one role.
    I can create role based rule to show desktop using Master rule collection, but is it possible by doing to with role count.
    If user has multiple roles show desktop1 else show desktop2

    not sure if this possible ,you may check feasibility of creating  a application which checks user role count and if role count is = 1 load the Portal url (URL alais) which had TLN iview invisible in the same window else do nothing and load the portal with the desktop which has tln.
    Put the application in framewrk page which has TLN visible.
    create a URL alias and create a desktop -framework page which dont have TLN ,assign this desktop to this URL alias in rule collection set its priority before user conditions check in rule collection so that it has high priority before user or group check in rule collection.
    you can create a poc in sandbox and check if it wiorks?

Maybe you are looking for