Base solution for your next web application
Open Closed

Menu Item only for Tenants + Menu item as single Tabs #8472


User avatar
0
optixdev created

(Angular + ASP CORE) (Multi tenant application) Seprate solution

I have added new menu item from the link below but it showing on both Admin and Tenant application, but I only want to show it on Tenanat side not on Admin side.

https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Developing-Step-By-Step-Angular-Adding-New-Menu-Item

Also, how menu can works as a single item (tab - on click it should be navigate) because i am having only one item and it showing it as a child item (so I have to click it twice to navigate page).


8 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi @optixdev

    I have added new menu item from the link below but it showing on both Admin and Tenant application, but I only want to show it on Tenanat side not on Admin side.

    You can assign tenant-specific permission to the menu.

    Also, how menu can works as a single item (tab - on click it should be navigate) because i am having only one item and it showing it as a child item (so I have to click it twice to navigate page).

    Dashboard and Demo UI Components are such menus,

  • User Avatar
    0
    optixdev created

    NO these are not direct tabs -- Dashboard and Demo UI Components are such menus,

    Can you please help me for this -- Also, how menu can works as a single item (tab - on click it should be navigate) because i am having only one item and it showing it as a child item (so I have to click it twice to navigate page).

  • User Avatar
    0
    maliming created
    Support Team

    hi optixdev

    I see you closed the question, did you fix it?

    If not, can you share some screenshots to explain the problem?

  • User Avatar
    0
    optixdev created

    (Angular + .Net Core) In this picture I just have only one item in Menu (Tenants), but its showing as two item as one child item.

    I just want one item i.e number 1 not number 2. On click of number 1 it should navigate the pages.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team

    Remove [isTabMenuUsed]="true" at top-bar-menu

    themeX-layout.component.html
    

  • User Avatar
    0
    optixdev created

    But this is not the right solution as my other menu is having the many child item now which is hidden.

    I want to hide/show menu item to specific menu items.

  • User Avatar
    0
    musa.demir created

    Hello @optixdev

    I just removed isTabMenuUsed

    <div class="kt-header__bottom">
        <div [class]="containerClass">
            <!-- begin: Header Menu -->
            <top-bar-menu style="width: 100%"></top-bar-menu> <!--isTabMenuUsed Removed-->
            <!-- end: Header Menu -->
        </div>
    </div>
    

    and here is the result for me:

    So it seems like it works. Are you sure your menu items becomes insivible because of that?

  • User Avatar
    0
    optixdev created

    Thanks