OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions How hide or disable a tab into the navigation bar

This topic contains 8 replies, has 7 voices, and was last updated by  Stepan Yudin 8 years, 5 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #24781

    Hi everyone. I have a little question. How I can disable or hide a tab into the navigation bar? Example if I want hide the tab ‘Sales’, what I need to do ?
    Thanks you. Have a good day.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • #24782

    Sergey
    Participant

    Hi, @ruizalexandre!

    To disable Sales tab on navigation bar you need to override `sales_tab` option in your navigation.yml

    an set priority more than 50 to your bundle.

    To disable sales tab on account view you need to do same for `account_sales_tab_panel`

    bundle priority should be higher than 50

    #24783

    Yes it’s working.
    Thanks you.

    #24784

    alendo
    Participant

    I tried to hide sales_tab as suggested but in html I have a space with the following code:

    And in the view there is a space (without any label) reserved to sales_tab.
    Is possible to hide also this space?
    thanks

    #24785

    Yevhen Shyshkin
    Participant

    You can add custom menu builder in addition to the existing one.

    #24786

    alendo
    Participant

    Thank you Yevhen

    #24787

    dimitri.seguin17
    Participant

    Hello!

    Yevhen, could you be a bit more precise please? I didn’t managed…

    Thanks a lot!

    #24788

    Nicolas Rangeon
    Participant

    Hello,

    I would also need a bit more of infomation about how to add a menu builder please?
    Thank you!

    Nicolas

    #24789

    Stepan Yudin
    Participant

    Hi, alendo!

    I’ve found an easier solution
    If you look at OroNavigationBundle\DI\Configuration.php you will see parameter

    I tried to use it and it works.
    Example: how to hide activities and reports tabs:


    Docker environment for Symfony2/OroCRM/OroBAP development on Windows platform
    https://github.com/stepansib/sf-oro-docker

Viewing 8 replies - 1 through 8 (of 8 total)

The forum ‘OroCRM – Programming Questions’ is closed to new topics and replies.

Back to top