Hi @jjlbj
It's not related with ABP. You can do it configuring Serilog like below: https://stackoverflow.com/a/28334074/7200126
Hi @LawrenceKwan
It's not related with ABP. You can do it configuring Serilog like below: https://stackoverflow.com/a/28334074/7200126
This is an unexpected behavior in the modal.
It's a bug and we'll work on. Thanks for your feedback @krushnakant
Hi,
Have tried to configure your web.config like following topic: https://stackoverflow.com/a/44473484/7200126
Hi, I investigated your situation, It's a unexpected behavior. We'll change that behavior, if there is no item to show, that menu won't be visible.
Also your credit is refunded
You have to create into your project
Pages/Public/CmsKit/Pages/Index.cshtml.cs
andPages/Public/CmsKit/Pages/Index.cshtml
with content which I presentedIf I do have the cmsKit module source code, can I do it? If yes, I have created the class and page but the model is missing, MyIndexModel. What's Next?
I've just write it as MyIndexModel as a sample. You can name it whatever you want. And don't miss to add 'using' namespace of that model.
For the second question, yes you can directly make changes in source code of cmskit.
You have to create into your project Pages/Public/CmsKit/Pages/Index.cshtml.cs
and Pages/Public/CmsKit/Pages/Index.cshtml
with content which I presented
Hello @LawrenceKwan
You can learn more about customizing pages with following documentation: https://docs.abp.io/en/abp/latest/UI/AspNetCore/Customization-User-Interface
You can place following page into your project to replacement
Create following class into exact path under your Web project:
Pages/Public/CmsKit/Pages/Index.cshtml.cs
public class MyIndexModel : CommonPageModel
{
[BindProperty(SupportsGet = true)]
public string Slug { get; set; }
protected IPagePublicAppService PagePublicAppService { get; }
public PageDto Page { get; set; }
public string YourParameter { get; set; }
public IndexModel(IPagePublicAppService pagePublicAppService)
{
PagePublicAppService = pagePublicAppService;
}
public async Task<IActionResult> OnGetAsync()
{
Page = await PagePublicAppService.FindBySlugAsync(Slug);
YourParameter = "Some result from request";
if (Page == null)
{
return NotFound();
}
return Page();
}
}
Then add following page into exact path under your Web project:
Pages/Public/CmsKit/Pages/Index.cshtml
@page
@using Microsoft.AspNetCore.Mvc.Localization
@using Volo.CmsKit.Localization
@using Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Pages
@* ** Don't forget to Update Model from here: ** *@
@model MyIndexModel
@inject IHtmlLocalizer<CmsKitResource> L
@section styles{
<abp-style src="/Pages/Public/CmsKit/Pages/index.css" />
<style>
@Html.Raw(Model.Page.Style)
</style>
}
@section scripts{
<script>
@Html.Raw(Model.Page.Script)
</script>
}
@* ** You can render anything before or after page content ** *@
<h1>@Model.YourParameter</h1>
@await Component.InvokeAsync(typeof(DefaultPageViewComponent),
new
{
pageId = Model.Page.Id,
title = Model.Page.Title,
content = Model.Page.Content
})
Are you sure Lepton Theme is built after your changes. Can you check last change dates of lepton dll's?
Hi maristides
You can replace Lepton theme package with source code via using ABP Suite:
https://support.abp.io/QA/Questions/462/How-can-I-download-Lepton-Theme-source-code#answer-443079cf-43ba-d676-cd46-39f7f66bc2fd
Then you can customize any part of the theme.