ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 8 replies, has 7 voices, and was last updated by Stepan Yudin Stepan Yudin 1 year, 6 months ago.

  • Creator
    Topic
  • #4300

    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
  • #4305

    Sergey
    Oro Core

    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

    #4325

    Yes it’s working.
    Thanks you.

    #7911
    alendo
    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

    #7967
    Yevhen Shyshkin
    Yevhen Shyshkin
    Oro Core

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

    #7968
    alendo
    alendo
    Participant

    Thank you Yevhen

    #12454

    dimitri.seguin17
    Participant

    Hello!

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

    Thanks a lot!

    #13283

    Nicolas Rangeon
    Participant

    Hello,

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

    Nicolas

    #13839
    Stepan Yudin
    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

    • This reply was modified 1 year, 6 months ago by Stepan Yudin Stepan Yudin.
    • This reply was modified 1 year, 6 months ago by Stepan Yudin Stepan Yudin.
    • This reply was modified 1 year, 6 months ago by Stepan Yudin Stepan Yudin.
    • This reply was modified 1 year, 6 months ago by Stepan Yudin Stepan Yudin.
    • This reply was modified 1 year, 6 months ago by Stepan Yudin Stepan Yudin.
    • This reply was modified 1 year, 6 months ago by Stepan Yudin Stepan Yudin.
    • This reply was modified 1 year, 6 months ago by Stepan Yudin Stepan Yudin.
Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.