Hi team,
I am creating a custom partial module to include in the LeptonX side menu layout. All my research indicates getting the source code for the side menu layout to expose the module across the pages. Can you assist in providing the source code for the LeptonX theme?
LeptonX theme version is 4.2.1
Thank you kindly.
Regards,
5 Answer(s)
-
0
You can get the LeptonX 4.2.1 source code only from your ABP/LeptonX license area
- The LeptonX theme source is not published as a public GitHub repo; it’s downloaded according to your license.
- Follow these steps:
- Sign in to your account on abp.io with the user that owns the LeptonX (or ABP Commercial) license.
- Go to your License / Products section.
- Find LeptonX Theme (or the ABP Commercial package that includes it).
- In the LeptonX page, there will be a “Source Code” (or similarly named) download for the MVC UI and the specific version (e.g. 4.2.x).
- Download the MVC source package that matches your ABP/LeptonX version (4.2.1).
The official documentation describes this in the “Source-Code” section for LeptonX MVC UI.
How this helps with customizing the side menu layout
- Once you download and extract the LeptonX MVC source package:
- You will see the theme project (typically a Razor Class Library) that contains:
- Layout views (e.g.
_Layout.cshtml, side menu partials, etc.). - The partials and tag helpers used to render the side menu and modules.
- Layout views (e.g.
- You can inspect the existing side menu layout partial to see:
- How the menu is built from
IMenuManager/ApplicationMenu. - How sections/partials are injected (where to plug your custom partial module).
- How the menu is built from
- You will see the theme project (typically a Razor Class Library) that contains:
A common approach is:
- Copy the relevant LeptonX layout/partial into your own MVC project (keeping folder structure under
Views/SharedorThemes/LeptonX/…compatible with ABP’s view lookup rules). - Adjust it to render your custom partial where you need it in the side menu.
- Ensure your MVC project uses your overridden layout/partial (ABP will pick your view first if the path & name match the theme’s one).
- Once you download and extract the LeptonX MVC source package:
Sources
- LeptonX MVC UI docs (see “Source-Code” section):
https://abp.io/docs/latest/ui-themes/lepton-x/mvc
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
hi
> abp get-source Volo.Abp.LeptonXTheme --version 4.2.1Thanks.
-
0
Hi,
Thank you for getting back to me. I have been trying that in the account that purchased the commercial license.
The error log from the cli shows below:
[14:22:35 ERR] Downloading source code failed for: Volo.Abp.LeptonXTheme Volo.Abp.Studio.AbpStudioException: Exception of type 'Volo.Abp.Studio.AbpStudioException' was thrown. at async Task Volo.Abp.Studio.Modules.Installing.SourceCodeDownloader.
DownloadSourceCodeAsync(string moduleName, string targetFolder, string
version, bool includeNightly) at async Task Volo.Abp.Studio.Cli.Commands.StudioGetSourceCommand.ExecuteAsync (CommandLineArgs commandLineArgs) at async Task Volo.Abp.Studio.Cli.StudioCliService.RunInternalAsync( CommandLineArgs commandLineArgs) at async Task Volo.Abp.Studio.Cli.StudioCliService.RunAsync(string[] args)Kindly assist. Thanks.
-
0
For more context, the account that holds the Team license is under user mfrancislig, and one of the developers is ocoates. Can the source code for leptonx be downloaded for the mfrancislig account?
-
0
hi
The owner account can download the module source code.
Thanks.