Activities of "zsanhong"

thanks,Mikael,you are right. uninstall abp cli and re-install it resolve the problem

Question
  • ABP Framework version: v5.2.0
  • UI type: MVC
  • DB provider: EF Core
  • **Tiered (MVC)
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

when generator code use Abp suite, encounte the follow msg:

how to add a upload file button in tui.editor of cmskit module or change the insert img button not only upload img but also file?

in abp v5.1.3, add a new template with app-nolayers option, but some time I want to use it in abp commercial, please add the option in abp commercial and abp suite ,thanks

I add a method in webModel like this:

 services
                 .AddSingleton(_ => new MarkdownPipelineBuilder()
                     .UseAutoLinks()
                     .UseBootstrap()
                     .UseGridTables()
                     .UsePipeTables()
                     .Build());

and it worked. thank you for your help @EngincanV,

thank you @EngincanV, now I encounter another question, how to Inject IMarkdownToHtmlRenderer? because When I run it,It show wrong msg:

An unhandled exception occurred while processing the request.
DependencyResolutionException: None of the constructors found with 'Volo.Abp.Autofac.AbpAutofacConstructorFinder' on type 'ZSHTech.IPMS.Web.Utils.MarkdownToHtmlRenderer' can be invoked with the available services and parameters:
Cannot resolve parameter 'Markdig.MarkdownPipeline markdownPipeline' of constructor 'Void .ctor(Markdig.MarkdownPipeline)'.
Autofac.Core.Activators.Reflection.ReflectionActivator.GetAllBindings(ConstructorBinder[] availableConstructors, IComponentContext context, IEnumerable<Parameter> parameters)

DependencyResolutionException: An exception was thrown while activating ZSHTech.IPMS.Web.Pages.CmsKit.Pages.ViewModel -> ZSHTech.IPMS.Web.Utils.MarkdownToHtmlRenderer.
Autofac.Core.Resolving.Middleware.ActivatorErrorHandlingMiddleware.Execute(ResolveRequestContext context, Action<ResolveRequestContext> next)

if I change the index.js like this:

{
                            text: l('View'),
                            visible: abp.auth.isGranted('CmsKit.Pages.Update'),
                            action: function (data) {

                                location.href = 'Pages/ViewModel/' + data.record.id;
                            }
                        },

and I write the ViewModel.cshtml like this:

@page "/Cms/Pages/ViewModel/"

@using ZSHTech.IPMS.Web.Utils
@using Volo.Abp.AspNetCore.Mvc.UI.Packages.HighlightJs
@using  ZSHTech.IPMS.Web.Pages.CmsKit.Pages;
@model ViewModel

@inject IMarkdownToHtmlRenderer MarkdownRenderer
@{
}


<abp-card>
    <abp-card-body>
        @Html.Raw(await MarkdownRenderer.RenderAsync(Model.View.Content))
    </abp-card-body>
</abp-card>

ViewModel.cshtml.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Volo.CmsKit.Pages;
using Volo.CmsKit.Public.Pages;

namespace ZSHTech.IPMS.Web.Pages.CmsKit.Pages
{
    public class ViewModel : IPMSPageModel
    {
        [BindProperty(SupportsGet = true)]
        public Guid Id { get; set; }
        [BindProperty]
       public  PageViewModel View { get; set; }

        protected IPageRepository PageRepository { get; }

        public ViewModel(IPageRepository pageRepository)
        {
            PageRepository = pageRepository;
        }

        public async Task OnGetAsync()
        {
           var Page = await PageRepository.GetAsync(Id);


            View = new PageViewModel { Content = Page.Content, Title = Page.Title };

          
        }
       
    }

    public class PageViewModel
    {
        public Guid Id { get; set; }

        public string Title { get; set; }

        public string Content { get; set; }
    }
}

when I click the View button, I get the same wrong msg:

  • ABP Framework version: v4.0
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I want to add a “View" function In CmsKit Page to direct view the content of a Page,So I add index.js in fold pages\CmsKit\Pages like this:

and change the index.js like this:

 {
                            text: l('Edit'),
                            visible: abp.auth.isGranted('CmsKit.Pages.Update'),
                            action: function (data) {
                                location.href = 'Pages/Update/' + data.record.id;
                            }
                        },
                        {
                            text: l('View'),
                            visible: abp.auth.isGranted('CmsKit.Pages.Update'),
                            action: function (data) {

                                location.href = 'Pages/View';
                            }
                        },

and I also add a page name View.cshtml. but when I click the ”View" Button,

show wrong msg : can't fund the page View

please help me, thanks

thank you, I do ask the same question in tui.editor, but receive no feedback.

  • ABP Framework version: vX.X.X
  • UI type: Angular / MVC / Blazor
  • DB provider: EF Core / MongoDB
  • Tiered (MVC) or Identity Server Separated (Angular): yes / no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

I want to use flowchart in tui.editor, how to write a plugin for mermaid.thanks

Showing 1 to 10 of 23 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11