Open Closed

Custom MainFooterComponent.razor not displayed #6558


User avatar
0
karl.ettinger@energieag.at created
  • ABP Framework version: v8.0.1
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)

Hi!

In a Blazor.server project that was created with abp suite, the MainFooterComponent.razor component is created in Components/Layout. However, this is not displayed at runtime. What do I have to do to display the MainFooterComponent.razor from Components/Layout? What do I have to do so that the footer is not displayed on a mobile device?

Download sample project: https://powershare.energieag.at/s/8Sa9ytgm42BsEYg

Please request the password by e-mail

Best regards karl


4 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    You can add following code in MainFooterComponent.razor page

    @using Volo.Abp.DependencyInjection @using Volo.Abp.AspNetCore.Components.Web.LeptonXTheme.Components.ApplicationLayout.SideMenu @inherits Footer @attribute [ExposeServices(typeof(Footer))] @attribute [Dependency(ReplaceServices = true)]

    <span class=" copyright-text text-center" > My Custom Footer </span>

    Thank you.

  • User Avatar
    0
    karl.ettinger@energieag.at created

    Thanks for the quick answer, it worked.

    Is there also a way to deactivate the footer on mobile devices?

    Thank you.

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Yes it is possible , you have to customize your code at your side.

  • User Avatar
    0
    karl.ettinger@energieag.at created

    Thank you.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 18, 2024, 05:54