Open Closed

How to add dropdown in header just after the admin or language menu using blazor with abp.io #774


User avatar
0
safi created

Hi

I am using abp io with blazor and trying to add my dropdownlist in header (same line where we are having the login user name and language dropdown). Please let me know how I can show there also is there any way to change menu position like right now menu's are coming in left side but I want to show in header so is it possible?

Thanks,


3 Answer(s)
  • User Avatar
    0
    cotur created

    Hi @safi,

    Unfortunately you cannot manipulate the section that username & language change are stays. Working with source code is only one way to make it for now.

    You can change the Menu Positions easily, let me show you an example.

    Here, you can see how to re-order Administration Menu items.

    In settings page, you can change the menu placement setting also.

    You can change settings in different places, please see this documentation.

  • User Avatar
    0
    safi created

    Hi,

    Thanks for the reply. it's working fine. Can you please suggest me If I want to hide some options that are available under Administration so is it possible or not. If it's possible then how we can do this.

    I want to show only roles and user that is present in Identity Management. Please suggest me for this.

    Thanks,

  • User Avatar
    0
    cotur created

    Hi @safi

    Yes it is possible,

    First of all let me explain something. In Administration menu, we have different type of Application Modules, please check the documentation.

    Those are really essential modules for web applications, I do not suggest it to remove those. But you can make them not visible to other users.

    By default, the admin role & admin user has all permissions. You can create a new role and do not give it any permission, make it Default, so whenever a user is created, the default roles will be assigned to user.

    The users that does not have admin role will not see the Administration menu at all. Actually, they will see only modules that permission they have.

    Example:

    I created Standart User role as a default role.

    And I removed all permission except Identity Magement permission.

    When I log in with new user that has Standart User role, I see only Identity Management module, because I have no permission for others.

    If you want to really remove all of them, you should remove module depencies, module nuget packages for all project and create a new db migration.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11