Starts in:
0 DAY
23 HRS
20 MIN
38 SEC
Starts in:
0 D
23 H
20 M
38 S
Open Closed

Left Menu Does not show menu items at 3rd level of structure #4138


User avatar
0
Spospisil created

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v6.0.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

I have 3 menu items at the 2nd structural level of my left side nav menu. The structure is as follows. As shown in the screenshot when I click the Test Sub Menu the 3 menu items belonging to Test Sub Menu do not show. If you want to reproduce this issue just add the below code to your class that implements the IMenuContributor interface.

Test Menu 1 Test Sub Menu Test Menu Item 1 Test Menu Item 2 Test Menu Item 3

Code to reproduce

    var miMenu1 = new ApplicationMenuItem(
        name: "TestMenu1",
        displayName: "Test Menu 1",
        elementId: "TestMenu1",
        order: 1
        ).RequireAuthenticated();

    var miMenu1SubMenu1 = new ApplicationMenuItem(
        name: "TestMenu1SubMenu1",
        displayName: "Test Sub Menu",
        elementId: "TestMenu1SubMenu1",
        order: 1
        ).RequireAuthenticated();

    miMenu1SubMenu1.Items.Add(
        new ApplicationMenuItem (
        "TestMenuItem1",
        "Test Menu Item 1",
        "TestMenuItem1",
        order: 1
        ).RequireAuthenticated());

    miMenu1SubMenu1.Items.Add(
        new ApplicationMenuItem(
        "TestMenuItem2",
        "Test Menu Item 2",
        "TestMenuItem2",
        order: 2
        ).RequireAuthenticated());

    miMenu1SubMenu1.Items.Add(
        new ApplicationMenuItem(
        "TestMenuItem3",
        "Test Menu Item 3",
        "TestMenuItem3",
        order: 3
        ).RequireAuthenticated());

    miMenu1.Items.Add(miMenu1SubMenu1);

    //Add Application Security Group menu item
    context.Menu.GetAdministration().AddItem(miMenu1);

19 Answer(s)
  • User Avatar
    0
    Spospisil created

    Hi,

    Any update on this?

  • User Avatar
    0
    Spospisil created

    Hi,

    I need an update on this issue please

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, sorry for the late response. We'll try to reproduce the problem (a support member assigned to your question) and take the necessary action on it. Best regards.

  • User Avatar
    0
    Spospisil created

    Hi,

    If you use the code I provided you should be able to reproduce it as when I create a tiered solution in ABP suite and then add the code I provided it'll reproduce the issue for you.

    Steve

  • User Avatar
    0
    Spospisil created

    Hi,

    I need an update on this please. Have you been able to reproduce the issue I'm describing?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @Spospisil, I was able to reproduce it and created an internal issue (#956) for your problem. I will inform you when it's fixed. Best regards.

  • User Avatar
    0
    Spospisil created

    Thank you. I would appreciate that.

  • User Avatar
    0
    Spospisil created

    Hi,

    Can I get an update in terms of when/what release the fix for this issue will happen in? This is a blocking issue for my development for my company's project.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi,

    Can I get an update in terms of when/what release the fix for this issue will happen in? This is a blocking issue for my development for my company's project.

    Hi, we've created an issue and prioritized it and planning to fix it within the new LeptonX Theme release.

  • User Avatar
    0
    Spospisil created

    Hi,

    Timeframe please? I need to communicate to my managers when this blocking issue will be resolved

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, sorry I can't give you a certain time but we're planning to release a new version before this year's end.

  • User Avatar
    0
    Spospisil created

    Hi,

    And this fix to the bug will be in that specific release?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi,

    And this fix to the bug will be in that specific release?

    Yes, we are planning to fix it before the release.

  • User Avatar
    0
    Spospisil created

    Hi,

    Since we are a commercial license owner and thus have all the source code is it possible you can get me the coding fix to this issue so I may have it prior to the end of the year and I'll just apply it to my local version of the source code until I am ready to update my solution to the newest release at the end of the year?

    Thanks.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi,

    Since we are a commercial license owner and thus have all the source code is it possible you can get me the coding fix to this issue so I may have it prior to the end of the year and I'll just apply it to my local version of the source code until I am ready to update my solution to the newest release at the end of the year?

    Thanks.

    Yes, sure. I will share the solution with you 👍

  • User Avatar
    0
    alper created
    Support Team Director

    we've sent you the related file

  • User Avatar
    0
    muhammedaltug created

    Hello,

    You can replace the existing lepton-x js bundle by copying the lepton-x.bundle.min.js into /src/YourProject.Web/Themes/LeptonX/Global/side-menu/js

    Note: Side menu of lepton x has been styled to have a maximum of 4 levels. If you want a space after the fourth level, you need to add the style below to your global-styles.css file.

    .lpx-nav-menu
      .lpx-inner-menu
      .lpx-inner-menu
      .lpx-inner-menu
      .lpx-menu-item-link {
      padding-left: 108px;
    }
    
  • User Avatar
    0
    Spospisil created

    we've sent you the related file

    Where has the file been sent?

  • User Avatar
    0
    muhammedaltug created

    Hello,

    File sent to your email

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06