Activities of "konstantinidis.f"

My purpose is to use the RouterTabs blazor component in every page's layout (so that the pages appear in tabs). As you can see from the sample, what I've done works for all the pages except for the Account ones that are MVC. What do you suggest I do? RouterTabs cannot be used inside the .cshtml layout.

Yes i have overriden the Side Layout in both Blazor Server and WASM but also in App.razor the render mode was always set to InteractiveServer. The issue still persists.

As you can see the page Settings uses my custom layout which has large title on top while the Accoun.Pro External logins page doesn't use the custom layout but instead uses the LeptonX layout. I provided 1 gif and 2 screenshots showing the problem.

I'm not sure the AI answer makes sense.

I understand that overriding the login page in the theme is a workaround of this issue. The question is: Is there another workaround that does not override the theme? Also, is this considered a bug of the theme that we should expect to be fixed in the future?

Answer

Thank you very much for the layout. I see now that some services need hooks in the layout to work. I would suggest a note in the documentation of those services mentioning the necessary setup in case a theme is not used or is being customized.

Answer

Are you saying that it is necessary to have a theme for a minimal ABP application to work? I thought ABP was meant to be modular in the sense that you only installed what you needed and the installed modules did the setup for whatever dependency they needed.

Also, the services that I mentioned were not working (the block service and the notification service) are just those I've noticed. Is there another service from the initial packages (and their dependencies) that might not work even if I use a theme?

Answer

I sent a project. You can switch between the commented lines for different results of the test. Without the BlazorStandardBundles, calling IBlockUiService and IUiNotificationService produces exceptions. With the BlazorStandardBundles, IBlockUiService works correctly, but IUiNotificationService does nothing.

private void ConfigureBundles()
{
	//Create the global bundle
	Configure<AbpBundlingOptions>(options =>
	{
		options.StyleBundles
			.Add("MyGlobalBundle");
		//options.StyleBundles
		//    .Add("MyGlobalBundle", config =>
		//    {
		//        config.AddBaseBundles(BlazorStandardBundles.Styles.Global);
		//    });

		options.ScriptBundles
			.Add("MyGlobalBundle");
		//options.ScriptBundles
		//    .Add("MyGlobalBundle", config =>
		//    {
		//        config.AddBaseBundles(BlazorStandardBundles.Scripts.Global);
		//    });
	});
}
Answer

The AI basically reiterated what I said. I don't have a _Host.cshtml in a Blazor Web App project and the .AddBlazorise is already done by Volo.Abp.BlazoriseUI. AddBootstrapProviders() and AddFontAwesomeIcons() are not done, but wouldn't they be done if BlazoriseUI needed them?

Please answer again to my original questions.

The <div/> does not have any significance. The body of any page is rendered inside the <RouterTabs/> component. Unfortunately, <RouterTabs/> does not support layout sections inside it. It just renders the page's body.

Rewriting the LeptonX source code or providing a custom layout would not help as the ABP pages expect any layout used to contain a Toolbar section. I could rewrite all the ABP pages to place their toolbar inside their body, but I would like to avoid that.

Besides that, the RouterTabs component expects an attribute in each page to provide the name of the page. The ABP pages do not have this attribute and thus the RouterTabs component uses their type name as the name.

Do you have an alternate suggestion to RouterTabs or a workaround to the above problems?

Showing 1 to 10 of 15 entries
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 09, 2026, 07:22
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.