1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Can I hide Resource Manager

Discussion in 'XenForo Questions and Support' started by rhodes, Apr 6, 2014.

  1. rhodes

    rhodes Active Member

    Hello,

    I use Resource Manager in my XF1.3 installation. Is it possible to remove the RM menu item from the main menu or move it to a sub menu? One of my menu entries (level 0) is "Services". I would like to add Resource Manager as first item of Services

    Services
    -- Resources
    -- 2nd Service
    ..
    Is this possible?

    Regards, rhodes
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    1) Edit the route handler to change the selected tab for RM pages:

    library/XenResource/Route/Prefix/Resources.php

    In the match() function, change the tabid:

    Code:
    return $router->getRouteMatch($controller, $action, 'resources');
    
    Tab IDs of navigation tabs can be seen in the HTML source:

    Code:
    <li class="navTab members Popup PopupControl PopupClosed">
    
    2) Hide the existing RM tab with CSS:

    Admin CP -> Appearance -> Templates -> EXTRA.css

    Code:
    .navTab.resources
    {
    	display: none;
    }
    
    3) Add the actual hyperlink to the new tab.

    If it's a default tab then you will find the HTML in the navigation template. Here is an example:

    http://xenforo.com/community/threads/add-latest-threads-to-navbar.8502/

    However, if it's a tab from an addon then it will probably have its own template (ask the author of the addon).
     
  3. rhodes

    rhodes Active Member

Share This Page