Open Closed

Customizing the order of tabs in the "My Account" area #4536


User avatar
0
balessi75 created

ABP 7.0.1 Commercial / Blazor Server / EF / Separated Tenant and Host DBs/ Non-tiered

Hi, We are attempting to change the order of the tabs in the "My Account" area. To do so, we considered replacing/overriding the AccountProfileManagementPageContributor and overriding the ConfigureAsync method so that we can add the tab groups in a custom order. We found, however, that ConfigureAsync is not overridable (virtual).

Are we going about this correctly or is there another way to accomplish this? If not, we'd like to put in a request to make the ConfigureAsync method of AccountProfileManagementPageContributor overridable.

Thanks in advance!


2 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can remove the AccountProfileManagementPageContributor and add your PageContributor to add page groups

    Configure<ProfileManagementPageOptions>(options =>
    {
        options.Contributors.RemoveAll(x => x.GetType() == typeof(AccountProfileManagementPageContributor));
        options.Contributors.Add(new MyAccountProfileManagementPageContributor());
    });
    
  • User Avatar
    0
    balessi75 created

    Thanks, @liangshiwei! This was everything I needed to customize the personal settings area as needed.

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