Attività di "maristides"

Hi,

I finally got it working. The structure is a bit confusing. When i created my project using ABP Suite i chose Blazor Server as the UI and i was expecting to have one UI project (only Blazor). Importing the Lepton theme source code, I realised that there are 3 UI projects involved.

  1. Volo.Abp.AspNetCore.Components.Server.LeptonTheme
  2. Volo.Abp.AspNetCore.Components.Web.LeptonTheme
  3. Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton

Is there a plan to change the structure for Blazor and provide a single UI project without having any MVC parts involved?

Hi guys,

I have found a solution to the above. I have:

  1. Created a commercial solution
  2. Replaced the lepton theme with the basic theme
  3. Added the basic source code to my solution
  4. Updated the references

Now i can override the theme but i have another problem. As i said in the beginning i want to work with Syncfusion controls. I added the controls in the Blazor project as mentioned on the docs. However, the UI now is managed from the module and not Blazor project. How can i inject Syncfusion to the module as well?

Hi,

As we speak i have also tried the following:

  1. Created a new solution with the free Template and Basic Theme
  2. Added all the commercial modules manually
  3. Added the source code of the Basic Theme in my solution
  4. Updated the project references

I still can't overwrite the theme. I comment out entire section and they still appear on screen. Is it possible to send you my solution for you to test?

No,

For example i navigate to modules\Volo.LeptonTheme\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton\Themes\Lepton\Components\MainMenu\Default.cshtml and i comment out the entire sidebar @<div class="lp-sidebar collapse navbar-collapse d-lg-block" id="navbarSidebar"> <div class="lp-sidebar-header"> <div class="lp-toggle-sidebar"> <i class="fa fa-align-left material-icons lp-open-icon"></i> <i class="fa fa-align-justify material-icons lp-close-icon"></i> </div> </div> <div class="lp-sidebar-wrapper"> <nav role="navigation" class="lp-sidebar-navi"> <ul> @foreach (var menuItem in Model.Items) { @await Html.PartialAsync("~/Themes/Lepton/Components/MainMenu/_MenuItem.cshtml", menuItem) } </ul> </nav> </div> </div>@

but when i run the project it still shows the main menu. Do i miss something?

Hi enisn,

Thanks for your response. I already know about this. I have tried it as well. The problem is that when i try to overwrite a control nothing changes. It seems that theme can't be overwritten. Can you please provide an example of how main menu control could be replaced with something else?

Hello,

Thanks for your help. The problem was that my language files were not embedded resources. It would be nice if this detail was mentioned in the documentation.

1 - 6 di 6
Made with ❤️ on ABP v8.2.0-preview Updated on marzo 25, 2024, 15:11